javax.crypto
public class ExemptionMechanism extends Object
Implementation note: this class is present for API-compatibility only; it is not actually used anywhere in this library and this library does not, in general, support crypto weakening.
Since: 1.4
| Constructor Summary | |
|---|---|
| protected | ExemptionMechanism(ExemptionMechanismSpi emSpi, Provider provider, String mechanism) |
| Method Summary | |
|---|---|
| protected void | finalize() |
| byte[] | genExemptionBlob() |
| int | genExemptionBlob(byte[] output) |
| int | genExemptionBlob(byte[] output, int outputOffset) |
| static ExemptionMechanism | getInstance(String mechanism)
Create an instance of ExemptionMechanism for a designated
mechanism from the first Security Provider offering it.
|
| static ExemptionMechanism | getInstance(String mechanism, String provider)
Create an instance of ExemptionMechanism for a designated
mechanism from a named provider.
|
| static ExemptionMechanism | getInstance(String mechanism, Provider provider)
Create an instance of ExemptionMechanism for a designated
mechanism from a designated provider.
|
| String | getName() |
| int | getOutputSize(int inputLength) |
| Provider | getProvider() |
| void | init(Key key) |
| void | init(Key key, AlgorithmParameters params) |
| void | init(Key key, AlgorithmParameterSpec params) |
| boolean | isCryptoAllowed(Key key) |
ExemptionMechanism for a designated
mechanism from the first Security Provider offering it.
Parameters: mechanism the name of the exemption mechanism to create.
Returns: a newly created instance of ExemptionMechanism.
Throws: IllegalArgumentException if the provider is null. NoSuchAlgorithmException if no such exemption mechanism is
available from any known Security Provider. IllegalArgumentException if mechanism is
null or is an empty string.
ExemptionMechanism for a designated
mechanism from a named provider.
Parameters: mechanism the name of the exemption mechanism to create. provider the security provider to provide the exemption
mechanism.
Returns: a newly created instance of ExemptionMechanism.
Throws: NoSuchAlgorithmException if no such exemption mechanism is
available from the named provider. NoSuchProviderException if no Security Provider with the designated
name is known to the underlying JVM. IllegalArgumentException if either mechanism or
provider is null, or if
mechanism is an empty string.
ExemptionMechanism for a designated
mechanism from a designated provider.
Parameters: mechanism the name of the exemption mechanism to create. provider the security provider to provide the exemption
mechanism.
Returns: a newly created instance of ExemptionMechanism.
Throws: NoSuchAlgorithmException if an exemption mechanism could not be
created. IllegalArgumentException if either mechanism or
provider is null, or if
mechanism is an empty string.