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, generatepublic LegacyP12Generator()
public LegacyP12Generator(int iterations)
iterations - Number of hashing rounds.public int getIterations()
getIterations in class AbstractP12Generatorprotected org.bouncycastle.asn1.ASN1ObjectIdentifier getDigestAlgorithmId()
getDigestAlgorithmId in class AbstractP12Generatorprotected DigestSpec getDigestSpec()
getDigestSpec in class AbstractP12Generatorprotected org.bouncycastle.operator.OutputEncryptor keyOutputEncryptor(char[] password)
AbstractP12GeneratorkeyOutputEncryptor in class AbstractP12Generatorpassword - Password tha will the basis of an encryption key.protected org.bouncycastle.operator.OutputEncryptor dataOutputEncryptor(char[] password)
AbstractP12GeneratordataOutputEncryptor in class AbstractP12Generatorpassword - Password tha will the basis of an encryption key.Copyright © 2003-2024 Virginia Tech. All Rights Reserved.