| Modifier and Type | Class and Description |
|---|---|
| public static class | KTSExtractKeySpec.
Builder class for creating a KTSExtractKeySpec. |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final PrivateKey |
| Access | Constructor and Description |
|---|---|
| private | KTSExtractKeySpec(PrivateKey privateKey, byte[] encapsulation, String algorithmName, int keySize, String macAlgorithm, int macKeySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo)
|
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | Returns: the secret encapsulation.Return the encapsulation of the secret associated with this key spec. |
| public PrivateKey | Returns: the private key to be used to decrypt the encapsulation.Return the decryption private key to be used by the SecretKeyFactory used with this key spec. |
| encapsulation | back to summary |
|---|---|
| private final byte[] encapsulation | |
| privateKey | back to summary |
|---|---|
| private final PrivateKey privateKey | |
| KTSExtractKeySpec | back to summary |
|---|---|
| private KTSExtractKeySpec(PrivateKey privateKey, byte[] encapsulation, String algorithmName, int keySize, String macAlgorithm, int macKeySizeInBits, AlgorithmParameterSpec parameterSpec, AlgorithmIdentifier kdfAlgorithm, byte[] otherInfo) | |
| getEncapsulation | back to summary |
|---|---|
| public byte[] getEncapsulation() Return the encapsulation of the secret associated with this key spec.
| |
| getPrivateKey | back to summary |
|---|---|
| public PrivateKey getPrivateKey() Return the decryption private key to be used by the SecretKeyFactory used with this key spec.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final byte[] | |
| private AlgorithmIdentifier | |
| private final int | |
| private String | |
| private int | |
| private final byte[] | |
| private AlgorithmParameterSpec | |
| private final PrivateKey |
| Access | Constructor and Description |
|---|---|
| public | Builder(PrivateKey
the private key to use to extract the secret from the encapsulation. privateKey, byte[] the encapsulated secret. encapsulation, 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)Basic builder. |
| public | Builder(PrivateKey
the private key to use to extract the secret from the encapsulation. privateKey, byte[] the encapsulated secret. encapsulation, 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[] otherInfo)Basic builder. |
| Modifier and Type | Method and Description |
|---|---|
| public KTSExtractKeySpec | |
| public KTSExtractKeySpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithmSet the KDF algorithm and digest algorithm for key generation (ignored for OAEP). |
| public KTSExtractKeySpec. | Returns: the current Builder instance.the KDF algorithm to apply. kdfAlgorithm)Set the KDF algorithm and digest algorithm for key generation (ignored for OAEP). |
| public KTSExtractKeySpec. | |
| public KTSExtractKeySpec. | Returns: the current Builder instance.the algorithm parameter spec to be used in decryption. parameterSpec)Set the algorithm parameter spec to be used with the private key. |
| algorithmName | back to summary |
|---|---|
| private final String algorithmName | |
| encapsulation | back to summary |
|---|---|
| private final byte[] encapsulation | |
| 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 final byte[] otherInfo | |
| parameterSpec | back to summary |
|---|---|
| private AlgorithmParameterSpec parameterSpec | |
| privateKey | back to summary |
|---|---|
| private final PrivateKey privateKey | |
| Builder | back to summary |
|---|---|
| public Builder(PrivateKey privateKey, byte[] encapsulation, String algorithmName, int keySizeInBits) Basic builder.
| |
| Builder | back to summary |
|---|---|
| public Builder(PrivateKey privateKey, byte[] encapsulation, String algorithmName, int keySizeInBits, byte[] otherInfo) Basic builder.
| |
| build | back to summary |
|---|---|
| public KTSExtractKeySpec build() Build the new key spec.
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSExtractKeySpec. Set the KDF algorithm and digest algorithm for key generation (ignored for OAEP).
| |
| withKdfAlgorithm | back to summary |
|---|---|
| public KTSExtractKeySpec. Set the KDF algorithm and digest algorithm for key generation (ignored for OAEP).
| |
| withMac | back to summary |
|---|---|
| public KTSExtractKeySpec. Set the MAC algorithm name and its associated key size for the MAC key in the encapsulation.
| |
| withParameterSpec | back to summary |
|---|---|
| public KTSExtractKeySpec. Set the algorithm parameter spec to be used with the private key.
| |