public class LegacyP12Generator extends AbstractP12Generator
Constructor and Description |
---|
LegacyP12Generator()
Creates a new instance that encrypts with 1024 rounds of hashing.
|
LegacyP12Generator(int iterations)
Creates a new instance that encrypts with 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 LegacyP12Generator()
public LegacyP12Generator(int iterations)
iterations
- Number of hashing rounds.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.