Java javax.crypto EncryptedPrivateKeyInfo fields, constructors, methods, implement or subclass

Example usage for Java javax.crypto EncryptedPrivateKeyInfo fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.crypto EncryptedPrivateKeyInfo.

The text is from its open source code.

Constructor

EncryptedPrivateKeyInfo(byte[] encoded)
Constructs (i.e., parses) an EncryptedPrivateKeyInfo from its ASN.1 encoding.
EncryptedPrivateKeyInfo(String algName, byte[] encryptedData)
Constructs an EncryptedPrivateKeyInfo from the encryption algorithm name and the encrypted data.
EncryptedPrivateKeyInfo(AlgorithmParameters algParams, byte[] encryptedData)
Constructs an EncryptedPrivateKeyInfo from the encryption algorithm parameters and the encrypted data.

Method

StringgetAlgName()
Returns the encryption algorithm.
AlgorithmParametersgetAlgParameters()
Returns the algorithm parameters used by the encryption algorithm.
byte[]getEncoded()
Returns the ASN.1 encoding of this object.
PKCS8EncodedKeySpecgetKeySpec(Cipher cipher)
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.
PKCS8EncodedKeySpecgetKeySpec(Key decryptKey)
Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it.