APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.crypto.provider

pack-priv final Class EncryptedPrivateKeyInfo

extends Object
Class Inheritance
Imports
java.io.*, sun.security.x509.AlgorithmId, sun.security.util.*

This class implements the EncryptedPrivateKeyInfo type, which is defined in PKCS #8 as follows:
EncryptedPrivateKeyInfo ::=  SEQUENCE {
    encryptionAlgorithm   AlgorithmIdentifier,
    encryptedData   OCTET STRING }
Author
Jan Luehe

Field Summary

Modifier and TypeField and Description
private final AlgorithmId
private byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
pack-priv
EncryptedPrivateKeyInfo(byte[] encoded)

Constructs (i.e., parses) an EncryptedPrivateKeyInfo from its encoding.

pack-priv
EncryptedPrivateKeyInfo(AlgorithmId algid, byte[] encryptedData)

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm and the encrypted data.

Method Summary

Modifier and TypeMethod and Description
pack-priv AlgorithmId
getAlgorithm()

Returns the encryption algorithm.

pack-priv byte[]
getEncoded()

Returns the ASN.1 encoding of this class.

pack-priv byte[]
getEncryptedData()

Returns the encrypted data.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

algidback to summary
private final AlgorithmId algid
encodedback to summary
private byte[] encoded
encryptedDataback to summary
private final byte[] encryptedData

Constructor Detail

EncryptedPrivateKeyInfoback to summary
pack-priv EncryptedPrivateKeyInfo(byte[] encoded) throws IOException

Constructs (i.e., parses) an EncryptedPrivateKeyInfo from its encoding.

EncryptedPrivateKeyInfoback to summary
pack-priv EncryptedPrivateKeyInfo(AlgorithmId algid, byte[] encryptedData)

Constructs an EncryptedPrivateKeyInfo from the encryption algorithm and the encrypted data.

Method Detail

getAlgorithmback to summary
pack-priv AlgorithmId getAlgorithm()

Returns the encryption algorithm.

getEncodedback to summary
pack-priv byte[] getEncoded()

Returns the ASN.1 encoding of this class.

getEncryptedDataback to summary
pack-priv byte[] getEncryptedData()

Returns the encrypted data.