de.flexiprovider.api.keys
Class PrivateKey

java.lang.Object
  |
  +--de.flexiprovider.api.keys.PrivateKey
All Implemented Interfaces:
java.security.Key, Key, java.security.PrivateKey, java.io.Serializable
Direct Known Subclasses:
CMSSPrivateKey, DSAPrivateKey, ECPrivateKey, ElGamalPrivateKey, GMSSPrivateKey, IQDSAPrivateKey, IQGQPrivateKey, IQRDSAPrivateKey, LMOTSPrivateKey, McElieceCCA2PrivateKey, McEliecePrivateKey, MerkleOTSPrivateKey, NiederreiterPrivateKey, PFlashPrivateKey, RainbowPrivateKey, RSAPrivateKey, SSVElGamalPrivateKey, TSSPrivateKey

public abstract class PrivateKey
extends java.lang.Object
implements Key, java.security.PrivateKey

See Also:
Serialized Form

Fields inherited from interface java.security.Key
serialVersionUID
 
Fields inherited from interface java.security.PrivateKey
serialVersionUID
 
Constructor Summary
PrivateKey()
           
 
Method Summary
protected abstract  codec.asn1.ASN1Type getAlgParams()
           
 byte[] getEncoded()
          Return the key in its primary encoding format, PKCS #8.
 java.lang.String getFormat()
          Return the encoding format, PKCS #8.
protected abstract  byte[] getKeyData()
           
protected abstract  codec.asn1.ASN1ObjectIdentifier getOID()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Key
getAlgorithm
 

Constructor Detail

PrivateKey

public PrivateKey()
Method Detail

getFormat

public final java.lang.String getFormat()
Return the encoding format, PKCS #8.
Specified by:
getFormat in interface java.security.Key
Returns:
"PKCS#8"

getEncoded

public final byte[] getEncoded()
Return the key in its primary encoding format, PKCS #8.
Specified by:
getEncoded in interface java.security.Key
Returns:
the PKCS #8 encoded key.

getOID

protected abstract codec.asn1.ASN1ObjectIdentifier getOID()
Returns:
the OID to encode in the SubjectPublicKeyInfo structure

getAlgParams

protected abstract codec.asn1.ASN1Type getAlgParams()
Returns:
the algorithm parameters to encode in the SubjectPublicKeyInfo structure

getKeyData

protected abstract byte[] getKeyData()
Returns:
the keyData to encode in the SubjectPublicKeyInfo structure