Build 1.0_r1(from source)

javax.crypto
Class ExemptionMechanism

java.lang.Object
  extended by javax.crypto.ExemptionMechanism

public class ExemptionMechanism
extends Object


Constructor Summary
protected ExemptionMechanism(ExemptionMechanismSpi exmechSpi, Provider provider, String mechanism)
           
 
Method Summary
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
 byte[] genExemptionBlob()
           
 int genExemptionBlob(byte[] output)
           
 int genExemptionBlob(byte[] output, int outputOffset)
           
static ExemptionMechanism getInstance(String algorithm)
           
static ExemptionMechanism getInstance(String algorithm, Provider provider)
           
static ExemptionMechanism getInstance(String algorithm, String provider)
           
 String getName()
           
 int getOutputSize(int inputLen)
           
 Provider getProvider()
           
 void init(Key key)
           
 void init(Key key, AlgorithmParameters param)
           
 void init(Key key, AlgorithmParameterSpec param)
           
 boolean isCryptoAllowed(Key key)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExemptionMechanism

protected ExemptionMechanism(ExemptionMechanismSpi exmechSpi,
                             Provider provider,
                             String mechanism)
Method Detail

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

Build 1.0_r1(from source)

Please submit a feedback, bug or feature