public abstract class AbstractP12Generator extends Object implements P12Generator
Constructor and Description |
---|
AbstractP12Generator() |
Modifier and Type | Method and Description |
---|---|
protected abstract org.bouncycastle.operator.OutputEncryptor |
dataOutputEncryptor(char[] password)
Builds a new output encryptor that performs password-based encryption on encrypted data in the P12 file.
|
org.bouncycastle.pkcs.PKCS12PfxPdu |
generate(char[] password,
PrivateKey key,
String alias,
X509Certificate... certificates)
Generates a PKCS12 container object that contains the given private key and certificates with the given alias.
|
org.bouncycastle.pkcs.PKCS12PfxPdu |
generate(char[] password,
PrivateKey key,
X509Certificate... certificates)
Generates a PKCS12 container object that contains the given private key and certificates.
|
protected abstract org.bouncycastle.asn1.ASN1ObjectIdentifier |
getDigestAlgorithmId() |
protected abstract DigestSpec |
getDigestSpec() |
abstract int |
getIterations() |
protected abstract org.bouncycastle.operator.OutputEncryptor |
keyOutputEncryptor(char[] password)
Builds a new output encryptor that performs password-based encryption on keys in the P12 file.
|
public org.bouncycastle.pkcs.PKCS12PfxPdu generate(char[] password, PrivateKey key, String alias, X509Certificate... certificates)
P12Generator
generate
in interface P12Generator
password
- PKCS12 encryption password. This secret is also used to encrypt the inner private key.key
- Private key.alias
- Keystore alias.certificates
- One or more certificates. If more than one certificate is provided, the first is taken as the
end-entity certificate.public org.bouncycastle.pkcs.PKCS12PfxPdu generate(char[] password, PrivateKey key, X509Certificate... certificates)
P12Generator
generate
in interface P12Generator
password
- PKCS12 encryption password. This secret is also used to encrypt the inner private key.key
- Private key.certificates
- One or more certificates. If more than one certificate is provided, the first is taken as the
end-entity certificate.public abstract int getIterations()
protected abstract org.bouncycastle.asn1.ASN1ObjectIdentifier getDigestAlgorithmId()
protected abstract DigestSpec getDigestSpec()
protected abstract org.bouncycastle.operator.OutputEncryptor keyOutputEncryptor(char[] password)
password
- Password tha will the basis of an encryption key.protected abstract org.bouncycastle.operator.OutputEncryptor dataOutputEncryptor(char[] password)
password
- Password tha will the basis of an encryption key.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.