public class AESP12Generator extends AbstractP12Generator
Modifier and Type | Field and Description |
---|---|
static Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> |
SUPPORTED_DIGEST_ALGORITHMS
Set of supported digest algorithms.
|
Constructor and Description |
---|
AESP12Generator()
Creates a new instance that encrypts with AES-256-CBC and SHA256 using 2048 rounds of hashing.
|
AESP12Generator(org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgId,
int iterations)
Creates a new instances that uses AES-256-CBC and the given digest algorithm to encrypt data.
|
AESP12Generator(int iterations)
Creates a new instance that encrypts with AES-256-CBC and SHA256 using the given number of hashing rounds.
|
Modifier and Type | Method and Description |
---|---|
protected org.bouncycastle.operator.OutputEncryptor |
dataOutputEncryptor(char[] password)
Builds a new output encryptor that performs password-based encryption on encrypted data in the P12 file.
|
protected org.bouncycastle.asn1.ASN1ObjectIdentifier |
getDigestAlgorithmId() |
protected DigestSpec |
getDigestSpec() |
int |
getIterations() |
protected org.bouncycastle.operator.OutputEncryptor |
keyOutputEncryptor(char[] password)
Builds a new output encryptor that performs password-based encryption on keys in the P12 file.
|
generate, generate
public static final Set<org.bouncycastle.asn1.ASN1ObjectIdentifier> SUPPORTED_DIGEST_ALGORITHMS
public AESP12Generator()
public AESP12Generator(int iterations)
iterations
- Number of rounds of encryption.public AESP12Generator(org.bouncycastle.asn1.ASN1ObjectIdentifier digestAlgId, int iterations)
digestAlgId
- Digest algorithm identifier.iterations
- Number of rounds of hashing.public int getIterations()
getIterations
in class AbstractP12Generator
protected org.bouncycastle.asn1.ASN1ObjectIdentifier getDigestAlgorithmId()
getDigestAlgorithmId
in class AbstractP12Generator
protected DigestSpec getDigestSpec()
getDigestSpec
in class AbstractP12Generator
protected org.bouncycastle.operator.OutputEncryptor keyOutputEncryptor(char[] password)
AbstractP12Generator
keyOutputEncryptor
in class AbstractP12Generator
password
- Password tha will the basis of an encryption key.protected org.bouncycastle.operator.OutputEncryptor dataOutputEncryptor(char[] password)
AbstractP12Generator
dataOutputEncryptor
in class AbstractP12Generator
password
- Password tha will the basis of an encryption key.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.