de.flexiprovider.nf.iq.iqdsa
Class IQDSAPrivateKey
java.lang.Object
|
+--de.flexiprovider.api.keys.PrivateKey
|
+--de.flexiprovider.nf.iq.iqdsa.IQDSAPrivateKey
- All Implemented Interfaces:
- java.security.Key, Key, java.security.PrivateKey, java.io.Serializable
- public class IQDSAPrivateKey
- extends PrivateKey
This class represents IQDSA private keys.
- Author:
- Ralf-P. Weinmann
- See Also:
- Serialized Form
| Fields inherited from interface java.security.Key |
serialVersionUID |
| Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
| Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IQDSAPrivateKey
protected IQDSAPrivateKey(IQDSAParameterSpec params,
FlexiBigInt a)
- Construct an IQDSA private key from the given parameters and integer.
- Parameters:
params - the parametersa - the integer
IQDSAPrivateKey
protected IQDSAPrivateKey(IQDSAPrivateKeySpec keySpec)
- Construct an IQDSA private key from the given key specification.
- Parameters:
keySpec - the key specification
getAlgorithm
public java.lang.String getAlgorithm()
- Returns the standard algorithm name for this key.
- Returns:
- the name of the algorithm associated with this key.
getParams
protected IQDSAParameterSpec getParams()
- Returns:
- the parameters
getA
protected FlexiBigInt getA()
- Returns:
- the integer a
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 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