com.ibm.security12.sun.security.pkcs
Class EncryptedPrivateKeyInfo
java.lang.Object
|
+--com.ibm.security12.sun.security.pkcs.EncryptedPrivateKeyInfo
- public class EncryptedPrivateKeyInfo
- extends Object
This class implements the EncryptedPrivateKeyInfo
type,
which is defined in PKCS #8 as follows:
EncryptedPrivateKeyInfo ::= SEQUENCE {
encryptionAlgorithm AlgorithmIdentifier,
encryptedData OCTET STRING }
- Version:
- 1.4, 98/09/11
- Author:
- Jan Luehe
Constructor Summary |
EncryptedPrivateKeyInfo(AlgorithmId algid,
byte[] encryptedData)
Constructs an EncryptedPrivateKeyInfo from the
encryption algorithm and the encrypted data. |
EncryptedPrivateKeyInfo(byte[] encoded)
Constructs (i.e., parses) an EncryptedPrivateKeyInfo from
its encoding. |
EncryptedPrivateKeyInfo
public EncryptedPrivateKeyInfo(byte[] encoded)
throws IOException
- Constructs (i.e., parses) an
EncryptedPrivateKeyInfo
from
its encoding.
EncryptedPrivateKeyInfo
public EncryptedPrivateKeyInfo(AlgorithmId algid,
byte[] encryptedData)
- Constructs an
EncryptedPrivateKeyInfo
from the
encryption algorithm and the encrypted data.
getAlgorithm
public AlgorithmId getAlgorithm()
- Returns the encryption algorithm.
getEncryptedData
public byte[] getEncryptedData()
- Returns the encrypted data.
getEncoded
public byte[] getEncoded()
throws IOException
- Returns the ASN.1 encoding of this class.
equals
public boolean equals(Object other)
- Overrides:
- equals in class Object