public class EncryptedPrivateKeyInfo
extends java.lang.Object
EncryptedPrivateKeyInfo type,
which is defined in PKCS #8 as follows:
EncryptedPrivateKeyInfo ::= SEQUENCE {
encryptionAlgorithm AlgorithmIdentifier,
encryptedData OCTET STRING }
| Constructor and Description |
|---|
EncryptedPrivateKeyInfo(com.tencent.kona.sun.security.x509.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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
com.tencent.kona.sun.security.x509.AlgorithmId |
getAlgorithm()
Returns the encryption algorithm.
|
byte[] |
getEncoded()
Returns the ASN.1 encoding of this class.
|
byte[] |
getEncryptedData()
Returns the encrypted data.
|
int |
hashCode()
Returns a hashcode for this EncryptedPrivateKeyInfo.
|
public EncryptedPrivateKeyInfo(byte[] encoded)
throws java.io.IOException
EncryptedPrivateKeyInfo from
its encoding.java.io.IOExceptionpublic EncryptedPrivateKeyInfo(com.tencent.kona.sun.security.x509.AlgorithmId algid,
byte[] encryptedData)
EncryptedPrivateKeyInfo from the
encryption algorithm and the encrypted data.public com.tencent.kona.sun.security.x509.AlgorithmId getAlgorithm()
public byte[] getEncryptedData()
public byte[] getEncoded()
public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object