Example usage for Java javax.crypto EncryptedPrivateKeyInfo fields, constructors, methods, implement or subclass
The text is from its open source code.
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. |
String | getAlgName() Returns the encryption algorithm. |
AlgorithmParameters | getAlgParameters() Returns the algorithm parameters used by the encryption algorithm. |
byte[] | getEncoded() Returns the ASN.1 encoding of this object. |
PKCS8EncodedKeySpec | getKeySpec(Cipher cipher) Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it. |
PKCS8EncodedKeySpec | getKeySpec(Key decryptKey) Extract the enclosed PKCS8EncodedKeySpec object from the encrypted data and return it. |