| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private Map | |
| private static final Set | |
| private OperatorHelper | |
| private PublicKey | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | JceAsymmetricKeyWrapper(AlgorithmIdentifier
identifier for encryption algorithm to be used. algorithmIdentifier, PublicKey the public key to be used. publicKey)Create a wrapper, overriding the algorithm type that is stored in the public key. |
| public | JceAsymmetricKeyWrapper(AlgorithmParameters
algorithm parameters for encryption algorithm to be used. algorithmParams, PublicKey the public key to be used. publicKey)Create a wrapper, overriding the algorithm type that is stored in the public key. |
| public | JceAsymmetricKeyWrapper(AlgorithmParameterSpec
the parameterSpec for encryption algorithm to be used. algorithmParameterSpec, PublicKey the public key to be used. publicKey)Create a wrapper, overriding the algorithm type that is stored in the public key. |
| Modifier and Type | Method and Description |
|---|---|
| private static AlgorithmIdentifier | |
| public byte[] | generateWrappedKey(GenericKey encryptionKey)
Implements org.
|
| private static AlgorithmIdentifier | |
| pack-priv static boolean | |
| public JceAsymmetricKeyWrapper | Returns: the current Wrapper.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 JceAsymmetricKeyWrapper | |
| public JceAsymmetricKeyWrapper | |
| public JceAsymmetricKeyWrapper |
| digests | back to summary |
|---|---|
| private static final Map<K, V> digests | |
| extraMappings | back to summary |
|---|---|
| private Map<K, V> extraMappings | |
| gostAlgs | back to summary |
|---|---|
| private static final Set<E> gostAlgs | |
| helper | back to summary |
|---|---|
| private OperatorHelper helper | |
| publicKey | back to summary |
|---|---|
| private PublicKey publicKey | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| JceAsymmetricKeyWrapper | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper(PublicKey publicKey) | |
| JceAsymmetricKeyWrapper | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper(X509Certificate certificate) | |
| JceAsymmetricKeyWrapper | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper(AlgorithmIdentifier algorithmIdentifier, PublicKey publicKey) Create a wrapper, overriding the algorithm type that is stored in the public key.
| |
| JceAsymmetricKeyWrapper | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper(AlgorithmParameters algorithmParams, PublicKey publicKey) throws InvalidParameterSpecException Create a wrapper, overriding the algorithm type that is stored in the public key.
| |
| JceAsymmetricKeyWrapper | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper(AlgorithmParameterSpec algorithmParameterSpec, PublicKey publicKey) Create a wrapper, overriding the algorithm type that is stored in the public key.
| |
| extractAlgID | back to summary |
|---|---|
| private static AlgorithmIdentifier extractAlgID(PublicKey pubKey, AlgorithmParameterSpec algorithmParameterSpec) | |
| generateWrappedKey | back to summary |
|---|---|
| public byte[] generateWrappedKey(GenericKey encryptionKey) throws OperatorException Implements org. | |
| getDigest | back to summary |
|---|---|
| private static AlgorithmIdentifier getDigest(String digest) | |
| isGOST | back to summary |
|---|---|
| pack-priv static boolean isGOST(ASN1ObjectIdentifier algorithm) | |
| setAlgorithmMapping | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper 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");
| |
| setProvider | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper setProvider(Provider provider) | |
| setProvider | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper setProvider(String providerName) | |
| setSecureRandom | back to summary |
|---|---|
| public JceAsymmetricKeyWrapper setSecureRandom(SecureRandom random) | |