de.flexiprovider.nf.iq.iqdsa
Class IQDSAPublicKey

java.lang.Object
  |
  +--de.flexiprovider.api.keys.PublicKey
        |
        +--de.flexiprovider.nf.iq.iqdsa.IQDSAPublicKey
All Implemented Interfaces:
java.security.Key, Key, java.security.PublicKey, java.io.Serializable

public class IQDSAPublicKey
extends PublicKey

This class represents IQDSA public keys.

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

Fields inherited from interface java.security.Key
serialVersionUID
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Constructor Summary
protected IQDSAPublicKey(IQDSAParameterSpec params, QuadraticIdeal alpha)
          Construct an IQDSA public key from the given parameters and the base element of the NFDL-problem.
protected IQDSAPublicKey(IQDSAPublicKeySpec keySpec)
          Construct an IQDSAPubKey from the given key specification.
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getAlgorithm()
          Return the standard algorithm name for this key.
protected  codec.asn1.ASN1Type getAlgParams()
           
 QuadraticIdeal getAlpha()
           
protected  byte[] getKeyData()
           
protected  codec.asn1.ASN1ObjectIdentifier getOID()
           
 IQDSAParameterSpec getParams()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class de.flexiprovider.api.keys.PublicKey
getEncoded, getFormat
 
Methods inherited from class java.lang.Object
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IQDSAPublicKey

protected IQDSAPublicKey(IQDSAParameterSpec params,
                         QuadraticIdeal alpha)
Construct an IQDSA public key from the given parameters and the base element of the NFDL-problem.
Parameters:
params - the parameters
alpha - the base element of the NFDL-problem

IQDSAPublicKey

protected IQDSAPublicKey(IQDSAPublicKeySpec keySpec)
Construct an IQDSAPubKey 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:
"IQDSA"

getParams

public IQDSAParameterSpec getParams()
Returns:
the parameters

getAlpha

public QuadraticIdeal getAlpha()
Returns:
the base element of the NFDL-problem

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 other)
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 PublicKey
Following copied from class: de.flexiprovider.api.keys.PublicKey
Returns:
the algorithm parameters to encode in the SubjectPublicKeyInfo structure

getKeyData

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

getOID

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