JML

javax.crypto
Class ExemptionMechanism

java.lang.Object
  extended byjavax.crypto.ExemptionMechanism

public class ExemptionMechanism
extends Object


Model Field Summary
 
Model fields inherited from class java.lang.Object
_getClass, objectState, theString
 
Ghost Field Summary
 
Ghost fields inherited from class java.lang.Object
objectTimesFinalized, owner
 
Field Summary
private  boolean done
           
private  ExemptionMechanismSpi exmechSpi
           
private  boolean initialized
           
private  Key keyStored
           
private  String mechanism
           
private  Provider provider
           
 
Constructor Summary
protected ExemptionMechanism(ExemptionMechanismSpi, Provider, String)
           
 
Model Method Summary
 
Model methods inherited from class java.lang.Object
hashValue
 
Method Summary
protected  void finalize()
           
 byte[] genExemptionBlob()
           
 int genExemptionBlob(byte[])
           
 int genExemptionBlob(byte[], int)
           
static ExemptionMechanism getInstance(String)
           
static ExemptionMechanism getInstance(String, String)
           
static ExemptionMechanism getInstance(String, Provider)
           
 String getName()
           
 int getOutputSize(int)
           
 Provider getProvider()
           
 void init(Key)
           
 void init(Key, AlgorithmParameters)
           
 void init(Key, AlgorithmParameterSpec)
           
 boolean isCryptoAllowed(Key)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

done

private boolean done

keyStored

private Key keyStored

mechanism

private String mechanism

exmechSpi

private ExemptionMechanismSpi exmechSpi

initialized

private boolean initialized

provider

private Provider provider
Constructor Detail

ExemptionMechanism

protected ExemptionMechanism(ExemptionMechanismSpi,
                             Provider,
                             String)
Method Detail

getName

public final String getName()

getInstance

public static final ExemptionMechanism getInstance(String)
                                            throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getInstance

public static final ExemptionMechanism getInstance(String,
                                                   String)
                                            throws NoSuchAlgorithmException,
                                                   NoSuchProviderException
Throws:
NoSuchAlgorithmException
NoSuchProviderException

getInstance

public static final ExemptionMechanism getInstance(String,
                                                   Provider)
                                            throws NoSuchAlgorithmException
Throws:
NoSuchAlgorithmException

getProvider

public final Provider getProvider()

isCryptoAllowed

public final boolean isCryptoAllowed(Key)
                              throws ExemptionMechanismException
Throws:
ExemptionMechanismException

getOutputSize

public final int getOutputSize(int)
                        throws IllegalStateException
Throws:
IllegalStateException

init

public final void init(Key)
                throws InvalidKeyException,
                       ExemptionMechanismException
Throws:
InvalidKeyException
ExemptionMechanismException

init

public final void init(Key,
                       AlgorithmParameterSpec)
                throws InvalidKeyException,
                       InvalidAlgorithmParameterException,
                       ExemptionMechanismException
Throws:
InvalidKeyException
InvalidAlgorithmParameterException
ExemptionMechanismException

init

public final void init(Key,
                       AlgorithmParameters)
                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[])
                           throws IllegalStateException,
                                  ShortBufferException,
                                  ExemptionMechanismException
Throws:
IllegalStateException
ShortBufferException
ExemptionMechanismException

genExemptionBlob

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

finalize

protected void finalize()
Overrides:
finalize in class Object

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.