| Modifier and Type | Class and Description |
|---|---|
| public static class | KTSParameterSpec.
Builder class for creating a KTSParameterSpec. |
| Modifier and Type | Field and Description |
|---|---|
| public static final FipsKDF. | |
| public static final FipsKDF. | |
| private final AlgorithmIdentifier | |
| private final int | |
| private byte[] | |
| private final AlgorithmParameterSpec | |
| private final String |
| Access | Constructor and Description |
|---|---|
| private | KTSParameterSpec(String wrappingKeyAlgorithm, int keySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| public AlgorithmIdentifier | Returns: the AlgorithmIdentifier for the SecretKeyFactory's KDF.Return the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret. |
| public String | Returns: the key algorithm.Return the name of the algorithm for the wrapping key this key spec should use. |
| public int | Returns: length in bits of the key to be calculated.Return the size of the key (in bits) for the wrapping key this key spec should use. |
| public byte[] | |
| public AlgorithmParameterSpec | Returns: the algorithm parameter spec to be used with the private key.Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted. |
| KDF2 | back to summary |
|---|---|
| public static final FipsKDF. | |
| KDF3 | back to summary |
|---|---|
| public static final FipsKDF. | |
| kdfAlgorithm | back to summary |
|---|---|
| private final AlgorithmIdentifier kdfAlgorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| otherInfo | back to summary |
|---|---|
| private byte[] otherInfo | |
| parameterSpec | back to summary |
|---|---|
| private final AlgorithmParameterSpec parameterSpec | |
| wrappingKeyAlgorithm | back to summary |
|---|---|
| private final String wrappingKeyAlgorithm | |
| KTSParameterSpec | back to summary |
|---|---|
| private KTSParameterSpec(String wrappingKeyAlgorithm, int keySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| getKdfAlgorithm | back to summary |
|---|---|
| public AlgorithmIdentifier getKdfAlgorithm() Return the AlgorithmIdentifier for the KDF to do key derivation after extracting the secret.
| |
| getKeyAlgorithmName | back to summary |
|---|---|
| public String getKeyAlgorithmName() Return the name of the algorithm for the wrapping key this key spec should use.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Return the size of the key (in bits) for the wrapping key this key spec should use.
| |
| getOtherInfo | back to summary |
|---|---|
| public byte[] getOtherInfo() Return the otherInfo data for initialising the KDF.
| |
| getParameterSpec | back to summary |
|---|---|
| public AlgorithmParameterSpec getParameterSpec() Return the algorithm parameter spec to be applied with the private key when the encapsulation is decrypted.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private AlgorithmIdentifier | |
| private final int | |
| private byte[] | |
| private AlgorithmParameterSpec |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KTSParameterSpec | Returns: a new parameter spec configured according to the builder state.Build the new parameter spec. |
| public KTSParameterSpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfSourceSet the KDF algorithm and digest algorithm for wrap key generation. |
| public KTSParameterSpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithm)Set the KDF algorithm and digest algorithm for wrap key generation. |
| public KTSParameterSpec. | Returns: the current Builder instance.the algorithm parameter spec to be used in wrapping/unwrapping. parameterSpec)Set the algorithm parameter spec to be used with the wrapper. |
| algorithmName | back to summary |
|---|---|
| private final String algorithmName | |
| kdfAlgorithm | back to summary |
|---|---|
| private AlgorithmIdentifier kdfAlgorithm | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| otherInfo | back to summary |
|---|---|
| private byte[] otherInfo | |
| parameterSpec | back to summary |
|---|---|
| private AlgorithmParameterSpec parameterSpec | |
| Builder | back to summary |
|---|---|
| public Builder(String algorithmName, int keySizeInBits) Basic builder.
| |
| Builder | back to summary |
|---|---|
| public Builder(String algorithmName, int keySizeInBits, byte[] otherInfo) Basic builder.
| |
| build | back to summary |
|---|---|
| public KTSParameterSpec build() Build the new parameter spec.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSParameterSpec. Set the KDF algorithm and digest algorithm for wrap key generation.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSParameterSpec. Set the KDF algorithm and digest algorithm for wrap key generation.
| |
| withParameterSpec | back to summary |
|---|---|
| public KTSParameterSpec. Set the algorithm parameter spec to be used with the wrapper.
| |