javax.crypto
Class ExemptionMechanism
java.lang.Object
javax.crypto.ExemptionMechanism
public class ExemptionMechanism
- extends Object
ExemptionMechanism
protected ExemptionMechanism(ExemptionMechanismSpi exmechSpi,
Provider provider,
String mechanism)
getName
public final String getName()
getInstance
public static final ExemptionMechanism getInstance(String algorithm)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
getInstance
public static final ExemptionMechanism getInstance(String algorithm,
String provider)
throws NoSuchAlgorithmException,
NoSuchProviderException
- Throws:
NoSuchAlgorithmException
NoSuchProviderException
getInstance
public static final ExemptionMechanism getInstance(String algorithm,
Provider provider)
throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
getProvider
public final Provider getProvider()
isCryptoAllowed
public final boolean isCryptoAllowed(Key key)
throws ExemptionMechanismException
- Throws:
ExemptionMechanismException
getOutputSize
public final int getOutputSize(int inputLen)
throws IllegalStateException
- Throws:
IllegalStateException
init
public final void init(Key key)
throws InvalidKeyException,
ExemptionMechanismException
- Throws:
InvalidKeyException
ExemptionMechanismException
init
public final void init(Key key,
AlgorithmParameters param)
throws InvalidKeyException,
InvalidAlgorithmParameterException,
ExemptionMechanismException
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
ExemptionMechanismException
init
public final void init(Key key,
AlgorithmParameterSpec param)
throws InvalidKeyException,
InvalidAlgorithmParameterException,
ExemptionMechanismException
- Throws:
InvalidKeyException
InvalidAlgorithmParameterException
ExemptionMechanismException
genExemptionBlob
public final byte[] genExemptionBlob()
throws IllegalStateException,
ExemptionMechanismException
- Throws:
IllegalStateException
ExemptionMechanismException
genExemptionBlob
public final int genExemptionBlob(byte[] output)
throws IllegalStateException,
ShortBufferException,
ExemptionMechanismException
- Throws:
IllegalStateException
ShortBufferException
ExemptionMechanismException
genExemptionBlob
public final int genExemptionBlob(byte[] output,
int outputOffset)
throws IllegalStateException,
ShortBufferException,
ExemptionMechanismException
- Throws:
IllegalStateException
ShortBufferException
ExemptionMechanismException
finalize
protected void finalize()
- Description copied from class:
Object
- Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.
- Overrides:
finalize in class Object
Please submit a feedback, bug or feature