| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private OperatorHelper | |
| private PrivateKey | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GenericKey | generateUnwrappedKey(AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey)
Implements org.
|
| public JceAsymmetricKeyUnwrapper | Returns: the current Unwrapper.OID of algorithm in recipient. algorithm, String JCE algorithm name to use. algorithmName)Internally algorithm ids are converted into cipher names using a lookup table. |
| public JceAsymmetricKeyUnwrapper | Returns: this recipient.true if getEncoded() should return key bytes, false if not necessary. unwrappedKeyMustBeEncodable)Flag that unwrapping must produce a key that will return a meaningful value from a call to Key.getEncoded(). |
| public JceAsymmetricKeyUnwrapper | |
| public JceAsymmetricKeyUnwrapper |
| extraMappings | back to summary |
|---|---|
| private Map<K, V> extraMappings | |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| privKey | back to summary |
|---|---|
| private PrivateKey privKey | |
| unwrappedKeyMustBeEncodable | back to summary |
|---|---|
| private boolean unwrappedKeyMustBeEncodable | |
| JceAsymmetricKeyUnwrapper | back to summary |
|---|---|
| public JceAsymmetricKeyUnwrapper(AlgorithmIdentifier algorithmIdentifier, PrivateKey privKey) | |
| generateUnwrappedKey | back to summary |
|---|---|
| public GenericKey generateUnwrappedKey(AlgorithmIdentifier encryptedKeyAlgorithm, byte[] encryptedKey) throws OperatorException Implements org. | |
| setAlgorithmMapping | back to summary |
|---|---|
| public JceAsymmetricKeyUnwrapper setAlgorithmMapping(ASN1ObjectIdentifier algorithm, String algorithmName) Internally algorithm ids are converted into cipher names using a lookup table. For some providers the standard lookup table won't work. Use this method to establish a specific mapping from an algorithm identifier to a specific algorithm. For example:
unwrapper.setAlgorithmMapping(PKCSObjectIdentifiers.rsaEncryption, "RSA");
| |
| setMustProduceEncodableUnwrappedKey | back to summary |
|---|---|
| public JceAsymmetricKeyUnwrapper setMustProduceEncodableUnwrappedKey(boolean unwrappedKeyMustBeEncodable) Flag that unwrapping must produce a key that will return a meaningful value from a call to Key.getEncoded(). This is important if you are using a HSM for unwrapping and using a software based provider for with the unwrapped key. Default value: false.
| |
| setProvider | back to summary |
|---|---|
| public JceAsymmetricKeyUnwrapper setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JceAsymmetricKeyUnwrapper setProvider(String providerName) | |