|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bouncycastle.pkcs.PKCS8EncryptedPrivateKeyInfoBuilder
A class for creating EncryptedPrivateKeyInfo structures. EncryptedPrivateKeyInfo ::= SEQUENCE { encryptionAlgorithm AlgorithmIdentifier {{KeyEncryptionAlgorithms}}, encryptedData EncryptedData } EncryptedData ::= OCTET STRING KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= { [] -- For local profiles }
| Constructor Summary | |
PKCS8EncryptedPrivateKeyInfoBuilder(byte[] privateKeyInfo)
Construct a builder around a DER-encoded PrivateKeyInfo. |
|
PKCS8EncryptedPrivateKeyInfoBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)
Construct a builder around a parsed PrivateKeyInfo. |
|
| Method Summary | |
PKCS8EncryptedPrivateKeyInfo |
build(OutputEncryptor encryptor)
Encrypt the wrapped private key with . |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PKCS8EncryptedPrivateKeyInfoBuilder(byte[] privateKeyInfo)
PrivateKeyInfo.
privateKeyInfo - the encoded private-key bytes.public PKCS8EncryptedPrivateKeyInfoBuilder(org.bouncycastle.asn1.pkcs.PrivateKeyInfo privateKeyInfo)
PrivateKeyInfo.
privateKeyInfo - the private key to be encrypted.| Method Detail |
public PKCS8EncryptedPrivateKeyInfo build(OutputEncryptor encryptor)
encryptor - a configured output encryptor.
PKCS8EncryptedPrivateKeyInfo.
|
Bouncy Castle Cryptography Library 1.85 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||