public class PKCS8EncryptedPrivateKeyInfoBuilder
extends java.lang.Object
EncryptedPrivateKeyInfo ::= SEQUENCE {
encryptionAlgorithm AlgorithmIdentifier {{KeyEncryptionAlgorithms}},
encryptedData EncryptedData
}
EncryptedData ::= OCTET STRING
KeyEncryptionAlgorithms ALGORITHM-IDENTIFIER ::= {
... -- For local profiles
}
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
PKCS8EncryptedPrivateKeyInfo |
build(OutputEncryptor encryptor)
Encrypt the wrapped private key with
encryptor. |
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.public PKCS8EncryptedPrivateKeyInfo build(OutputEncryptor encryptor)
encryptor.encryptor - a configured output encryptor.PKCS8EncryptedPrivateKeyInfo.