| Modifier and Type | Class and Description |
|---|---|
| public static class | KTSGenerateKeySpec.
Builder class for creating a KTSGenerateKeySpec. |
| Modifier and Type | Field and Description |
|---|---|
| private final PublicKey | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| private | KTSGenerateKeySpec(PublicKey publicKey, String algorithmName, int keySize, SecureRandom random, String macAlgorithm, int macKeySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| public PublicKey | Returns: the public key to be used for secret encryption.Return the public key to be used to encrypt the secret and make the encapsulation. |
| public SecureRandom | Returns: the source of randomness for the secret.Return the SecureRandom which will be used to generate the secret. |
| publicKey | back to summary |
|---|---|
| private final PublicKey publicKey | |
| random | back to summary |
|---|---|
| private final SecureRandom random | |
| KTSGenerateKeySpec | back to summary |
|---|---|
| private KTSGenerateKeySpec(PublicKey publicKey, String algorithmName, int keySize, SecureRandom random, String macAlgorithm, int macKeySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| getPublicKey | back to summary |
|---|---|
| public PublicKey getPublicKey() Return the public key to be used to encrypt the secret and make the encapsulation.
| |
| getSecureRandom | back to summary |
|---|---|
| public SecureRandom getSecureRandom() Return the SecureRandom which will be used to generate the secret.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private AlgorithmIdentifier | |
| private final int | |
| private String | |
| private int | |
| private byte[] | |
| private AlgorithmParameterSpec | |
| private final PublicKey | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | Builder(PublicKey
the public key to be used for encryption/encapsulation generation. publicKey, String the algorithm name for the secret key we wish to calculate. algorithmName, int the size of the key we want to produce in bits. keySizeInBits, byte[] the otherInfo/IV encoding to be applied to the KDF. otherInfo)Basic builder. |
| Modifier and Type | Method and Description |
|---|---|
| public KTSGenerateKeySpec | |
| public KTSGenerateKeySpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfBuilderSet the KDF algorithm and digest algorithm for key generation. |
| public KTSGenerateKeySpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithm)Set the KDF algorithm and digest algorithm for key generation. |
| public KTSGenerateKeySpec. | |
| public KTSGenerateKeySpec. | Returns: the current Builder instance.the algorithm parameter spec to be used in encryption. parameterSpec)Set the algorithm parameter spec to be used with the public key. |
| public KTSGenerateKeySpec. | Returns: the current Builder instance.the source of randomness for the secret. random)Set the SecureRandom which will be used to generate the secret. |
| algorithmName | back to summary |
|---|---|
| private final String algorithmName | |
| kdfAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier kdfAlgorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| macAlgorithm | back to summary |
|---|---|
| private String macAlgorithm | |
| macKeySizeInBits | back to summary |
|---|---|
| private int macKeySizeInBits | |
| otherInfo | back to summary |
|---|---|
| private byte[] otherInfo | |
| parameterSpec | back to summary |
|---|---|
| private AlgorithmParameterSpec parameterSpec | |
| publicKey | back to summary |
|---|---|
| private final PublicKey publicKey | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| Builder | back to summary |
|---|---|
| public Builder(PublicKey publicKey, String algorithmName, int keySizeInBits) Basic builder. | |
| Builder | back to summary |
|---|---|
| public Builder(PublicKey publicKey, String algorithmName, int keySizeInBits, byte[] otherInfo) Basic builder.
| |
| build | back to summary |
|---|---|
| public KTSGenerateKeySpec build() Build the new key spec.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSGenerateKeySpec. Set the KDF algorithm and digest algorithm for key generation.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSGenerateKeySpec. Set the KDF algorithm and digest algorithm for key generation.
| |
| withMac | back to summary |
|---|---|
| public KTSGenerateKeySpec. Set the MAC algorithm name and its associated key size for the MAC key section of the secret.
| |
| withParameterSpec | back to summary |
|---|---|
| public KTSGenerateKeySpec. Set the algorithm parameter spec to be used with the public key.
| |
| withSecureRandom | back to summary |
|---|---|
| public KTSGenerateKeySpec. Set the SecureRandom which will be used to generate the secret.
| |