public class WrappedPrivateKey extends PrivateKeyInfo
private_key_algorithm, private_key_info| Constructor and Description |
|---|
WrappedPrivateKey() |
WrappedPrivateKey(ASN1Object obj) |
WrappedPrivateKey(byte[] arr) |
WrappedPrivateKey(java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decode(byte[] privateKey)
Simply hold onto the Raw Private Key Data.
|
protected byte[] |
encode()
Abstract method to be implemented for encoding this private key according
to DER.
|
java.lang.String |
getAlgorithm()
Return a String representation of the AlgorithmID which will tell us the algorithm
to use
|
AlgorithmID |
getAlgorithmID() |
createPrivateKeyInfo, decode, equals, getEncoded, getFormat, getPrivateKey, getPrivateKey, toASN1Object, toString, writeTopublic WrappedPrivateKey()
public WrappedPrivateKey(ASN1Object obj) throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionpublic WrappedPrivateKey(java.io.InputStream is)
throws java.security.InvalidKeyException,
java.io.IOException
java.security.InvalidKeyExceptionjava.io.IOExceptionpublic WrappedPrivateKey(byte[] arr)
throws java.security.InvalidKeyException
java.security.InvalidKeyExceptionprotected void decode(byte[] privateKey)
throws java.security.InvalidKeyException
decode in class PrivateKeyInfoprivateKey - the private key as DER encoded byte arrayjava.security.InvalidKeyException - if the does not match to the implemented
public-key algorithmprotected byte[] encode()
PrivateKeyInfoencode in class PrivateKeyInfopublic java.lang.String getAlgorithm()
getAlgorithm in interface java.security.KeygetAlgorithm in class PrivateKeyInfopublic AlgorithmID getAlgorithmID()