| Modifier and Type | Field and Description |
|---|---|
| private ASN1ObjectIdentifier | |
| private AlgorithmNameFinder | |
| private JcaJceHelper | |
| private int | |
| private ASN1ObjectIdentifier | |
| private SecretKeySizeProvider | |
| private final PBKDFConfig | |
| private PBKDF2Config. | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | JcePKCSPBEOutputEncryptorBuilder(PBKDFConfig
key derivation algorithm definition to use. pbkdfAlgorithm, ASN1ObjectIdentifier encryption algorithm to apply the derived key with. keyEncryptionAlg)Constructor allowing different derivation functions such as PBKDF2 and scrypt. |
| Modifier and Type | Method and Description |
|---|---|
| public OutputEncryptor | |
| private boolean | |
| private static byte[] | Returns: a byte array representing the password.a character array representing the password. password)converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end). |
| private static byte[] | Returns: a byte array representing the password.a character array representing the password. password)converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding) |
| public JcePKCSPBEOutputEncryptorBuilder | Returns: the current builder.the iteration count to apply to the key creation. iterationCount)Set the iteration count for the PBE calculation. |
| public JcePKCSPBEOutputEncryptorBuilder | Returns: the current builder.a provider of integer secret key sizes. keySizeProvider)Set the lookup provider of AlgorithmIdentifier returning key_size_in_bits used to handle PKCS5 decryption. |
| public JcePKCSPBEOutputEncryptorBuilder | Returns: the current builder.algorithm id for PRF. prf)Set the PRF to use for key generation. |
| public JcePKCSPBEOutputEncryptorBuilder | |
| public JcePKCSPBEOutputEncryptorBuilder | |
| public JcePKCSPBEOutputEncryptorBuilder | |
| private SecretKey |
| algorithm | back to summary |
|---|---|
| private ASN1ObjectIdentifier algorithm | |
| algorithmNameFinder | back to summary |
|---|---|
| private AlgorithmNameFinder algorithmNameFinder | |
| helper | back to summary |
|---|---|
| private JcaJceHelper helper | |
| iterationCount | back to summary |
|---|---|
| private int iterationCount | |
| keyEncAlgorithm | back to summary |
|---|---|
| private ASN1ObjectIdentifier keyEncAlgorithm | |
| keySizeProvider | back to summary |
|---|---|
| private SecretKeySizeProvider keySizeProvider | |
| pbkdf | back to summary |
|---|---|
| private final PBKDFConfig pbkdf | |
| pbkdfBuilder | back to summary |
|---|---|
| private PBKDF2Config. | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| JcePKCSPBEOutputEncryptorBuilder | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder(ASN1ObjectIdentifier keyEncryptionAlg) | |
| JcePKCSPBEOutputEncryptorBuilder | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder(PBKDFConfig pbkdfAlgorithm, ASN1ObjectIdentifier keyEncryptionAlg) Constructor allowing different derivation functions such as PBKDF2 and scrypt.
| |
| build | back to summary |
|---|---|
| public OutputEncryptor build(final char[] password) throws OperatorCreationException | |
| isPKCS12 | back to summary |
|---|---|
| private boolean isPKCS12(ASN1ObjectIdentifier algorithm) | |
| PKCS12PasswordToBytes | back to summary |
|---|---|
| private static byte[] PKCS12PasswordToBytes(char[] password) converts a password to a byte array according to the scheme in PKCS12 (unicode, big endian, 2 zero pad bytes at the end).
| |
| PKCS5PasswordToBytes | back to summary |
|---|---|
| private static byte[] PKCS5PasswordToBytes(char[] password) converts a password to a byte array according to the scheme in PKCS5 (ascii, no padding)
| |
| setIterationCount | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setIterationCount(int iterationCount) Set the iteration count for the PBE calculation.
| |
| setKeySizeProvider | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setKeySizeProvider(SecretKeySizeProvider keySizeProvider) Set the lookup provider of AlgorithmIdentifier returning key_size_in_bits used to handle PKCS5 decryption.
| |
| setPRF | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setPRF(AlgorithmIdentifier prf) Set the PRF to use for key generation. By default this is HmacSHA1.
| |
| setProvider | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setProvider(String providerName) | |
| setRandom | back to summary |
|---|---|
| public JcePKCSPBEOutputEncryptorBuilder setRandom(SecureRandom random) | |
| simplifyPbeKey | back to summary |
|---|---|
| private SecretKey simplifyPbeKey(SecretKey key) | |