de.flexiprovider.nf.iq.iqgq
Class IQGQPrivateKey

java.lang.Object
  |
  +--de.flexiprovider.api.keys.PrivateKey
        |
        +--de.flexiprovider.nf.iq.iqgq.IQGQPrivateKey
All Implemented Interfaces:
java.security.Key, Key, java.security.PrivateKey, java.io.Serializable

public class IQGQPrivateKey
extends PrivateKey

Class for private keys pertaining to the IQGQ algorithm

Author:
Ralf-P. Weinmann
See Also:
PrivateKey, Serialized Form

Fields inherited from interface java.security.Key
serialVersionUID
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
protected IQGQPrivateKey(IQGQParameterSpec params, QuadraticIdeal theta, FlexiBigInt exponent)
           
protected IQGQPrivateKey(IQGQPrivateKeySpec keySpec)
          Construct an IQGQPrivateKey from the given key specification.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAlgorithm()
          Return the standard algorithm name for this key.
protected  codec.asn1.ASN1Type getAlgParams()
           
 FlexiBigInt getExponent()
           
protected  byte[] getKeyData()
           
protected  codec.asn1.ASN1ObjectIdentifier getOID()
           
 IQGQParameterSpec getParams()
           
 QuadraticIdeal getTheta()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class de.flexiprovider.api.keys.PrivateKey
getEncoded, getFormat
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IQGQPrivateKey

protected IQGQPrivateKey(IQGQParameterSpec params,
                         QuadraticIdeal theta,
                         FlexiBigInt exponent)

IQGQPrivateKey

protected IQGQPrivateKey(IQGQPrivateKeySpec keySpec)
Construct an IQGQPrivateKey from the given key specification.
Parameters:
keySpec - the key specification
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Return the standard algorithm name for this key.
Returns:
"IQGQ"

getParams

public IQGQParameterSpec getParams()
Returns:
the parameters

getTheta

public QuadraticIdeal getTheta()
Returns:
theta

getExponent

public FlexiBigInt getExponent()
Returns:
the exponent

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
a human-readable form of the key

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getAlgParams

protected codec.asn1.ASN1Type getAlgParams()
Overrides:
getAlgParams in class PrivateKey
Following copied from class: de.flexiprovider.api.keys.PrivateKey
Returns:
the algorithm parameters to encode in the SubjectPublicKeyInfo structure

getKeyData

protected byte[] getKeyData()
Overrides:
getKeyData in class PrivateKey
Following copied from class: de.flexiprovider.api.keys.PrivateKey
Returns:
the keyData to encode in the SubjectPublicKeyInfo structure

getOID

protected codec.asn1.ASN1ObjectIdentifier getOID()
Overrides:
getOID in class PrivateKey
Following copied from class: de.flexiprovider.api.keys.PrivateKey
Returns:
the OID to encode in the SubjectPublicKeyInfo structure