| Modifier and Type | Class and Description |
|---|---|
| public static class | KTSParameterSpec.
Builder class for creating a KTSParameterSpec. |
| Modifier and Type | Field and Description |
|---|---|
| private final AlgorithmParameterSpec |
| Access | Constructor and Description |
|---|---|
| protected | KTSParameterSpec(String wrappingKeyAlgorithm, int keySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| 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. |
| parameterSpec | back to summary |
|---|---|
| private final AlgorithmParameterSpec parameterSpec | |
| KTSParameterSpec | back to summary |
|---|---|
| protected KTSParameterSpec(String wrappingKeyAlgorithm, int keySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| 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. kdfAlgorithm)Set the KDF algorithm and digest algorithm for wrap key generation. |
| public KTSParameterSpec. | Returns: the current Builder instance.Use the shared secret directly for key wrap 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. The default KDF is X9.44 KDF-3, also known as the NIST concatenation KDF.
| |
| withNoKdf | back to summary |
|---|---|
| public KTSParameterSpec. Use the shared secret directly for key wrap generation.
| |
| withParameterSpec | back to summary |
|---|---|
| public KTSParameterSpec. Set the algorithm parameter spec to be used with the wrapper.
| |