Top Description Inners Fields Constructors Methods
com.oracle.bmc.http.client.pki

pack-priv Class OpenSslPbeSecretKeyGenerator

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, .CharBuffer, java.nio.charset.StandardCharsets, java.security.MessageDigest, .NoSuchAlgorithmException, java.util.Arrays

Derives the secret key used for OpenSSL style encryption.
See Also
EVP_BytesToKey source code

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final MessageDigest
private final int
private final byte[]
private final byte[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static OpenSslPbeSecretKeyGenerator.Builder
pack-priv byte[]
private static byte[]
toBytes(char[] chars)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
private final MessageDigest digest
keyLengthback to summary
private final int keyLength
passwordback to summary
private final byte[] password
saltback to summary
private final byte[] salt

Constructor Detail

OpenSslPbeSecretKeyGeneratorback to summary
private OpenSslPbeSecretKeyGenerator(OpenSslPbeSecretKeyGenerator.Builder builder)

Method Detail

builderback to summary
pack-priv static OpenSslPbeSecretKeyGenerator.Builder builder()
generateback to summary
pack-priv byte[] generate()
toBytesback to summary
private static byte[] toBytes(char[] chars)
com.oracle.bmc.http.client.pki back to summary

pack-priv final Class OpenSslPbeSecretKeyGenerator.Builder

extends Object
Class Inheritance
  • java.lang.Object
  • com.oracle.bmc.http.client.pki.OpenSslPbeSecretKeyGenerator.Builder

Field Summary

Modifier and TypeField and Description
private MessageDigest
private int
private byte[]
private byte[]

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv OpenSslPbeSecretKeyGenerator
pack-priv OpenSslPbeSecretKeyGenerator.Builder
pack-priv OpenSslPbeSecretKeyGenerator.Builder
keyLength(int keyLength)

pack-priv OpenSslPbeSecretKeyGenerator.Builder
password(char[] password)

pack-priv OpenSslPbeSecretKeyGenerator.Builder
salt(byte[] salt)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

digestback to summary
private MessageDigest digest
keyLengthback to summary
private int keyLength
passwordback to summary
private byte[] password
saltback to summary
private byte[] salt

Constructor Detail

Builderback to summary
private Builder()

Method Detail

buildback to summary
pack-priv OpenSslPbeSecretKeyGenerator build()
digestback to summary
pack-priv OpenSslPbeSecretKeyGenerator.Builder digest(MessageDigest digest)
keyLengthback to summary
pack-priv OpenSslPbeSecretKeyGenerator.Builder keyLength(int keyLength)
passwordback to summary
pack-priv OpenSslPbeSecretKeyGenerator.Builder password(char[] password)
saltback to summary
pack-priv OpenSslPbeSecretKeyGenerator.Builder salt(byte[] salt)