javax.crypto
Class ExemptionMechanism

java.lang.Object
  |
  +--javax.crypto.ExemptionMechanism

public class ExemptionMechanism
extends Object

ExemptionMechanism class from JCE 1.2.1. NOTE that the IAIK re-implementation does not handle JCE 1.2.1 crypto policies nor exemption in any way at this moment. This class was implemented for API compatibility only.


Attention:  This is not a SUN implementation!

This class has been developed by IAIK according to the documentation publically available.
For SUNīs documentation of this class see http://java.sun.com/security/JCE1.2/spec/apidoc/index.html


Version:
File Revision 8

Constructor Summary
protected ExemptionMechanism(ExemptionMechanismSpi exmechSpi, 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)
           
static ExemptionMechanism getInstance(String mechanism, String provider)
           
 String getName()
           
 int getOutputSize(int inputLen)
           
 Provider getProvider()
           
 void init(Key key)
           
 void init(Key key, AlgorithmParameters params)
           
 void init(Key key, AlgorithmParameterSpec params)
           
 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 mechanism)
                                            throws NoSuchAlgorithmException

getInstance

public static final ExemptionMechanism getInstance(String mechanism,
                                                   String provider)
                                            throws NoSuchAlgorithmException,
                                                   NoSuchProviderException

getProvider

public final Provider getProvider()

isCryptoAllowed

public final boolean isCryptoAllowed(Key key)
                              throws ExemptionMechanismException

getOutputSize

public final int getOutputSize(int inputLen)
                        throws IllegalStateException

init

public final void init(Key key)
                throws InvalidKeyException,
                       ExemptionMechanismException

init

public final void init(Key key,
                       AlgorithmParameterSpec params)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException,
                       ExemptionMechanismException

init

public final void init(Key key,
                       AlgorithmParameters params)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException,
                       ExemptionMechanismException

genExemptionBlob

public final byte[] genExemptionBlob()
                              throws IllegalStateException,
                                     ExemptionMechanismException

genExemptionBlob

public final int genExemptionBlob(byte[] output)
                           throws IllegalStateException,
                                  ShortBufferException,
                                  ExemptionMechanismException

genExemptionBlob

public final int genExemptionBlob(byte[] output,
                                  int outputOffset)
                           throws IllegalStateException,
                                  ShortBufferException,
                                  ExemptionMechanismException

finalize

protected void finalize()
Overrides:
finalize in class Object

This Javadoc may contain text parts from Internet Standard specifications (RFC 2459, 3280, 3039, 2560, 1521, 821, 822, 2253, 1319, 1321, ,2630, 2631, 2268, 3058, 2984, 2104, 2144, 2040, 2311, 2279, see copyright note) and RSA Data Security Public-Key Cryptography Standards (PKCS#1,3,5,7,8,9,10,12, see copyright note).

IAIK-JCE 3.1 with IAIK-JCE CC Core 3.1, (c) 1997-2004 IAIK