ExemptionMechanism (Java SE 15 & JDK 15) (original) (raw)


public class ExemptionMechanism extends Object

This class provides the functionality of an exemption mechanism, examples of which are key recovery, key weakening, and_key escrow_.

Applications or applets that use an exemption mechanism may be granted stronger encryption capabilities than those which don't.

Since:

1.4

Modifier and Type Method Description
byte[] genExemptionBlob() Generates the exemption mechanism key blob.
int genExemptionBlob​(byte[] output) Generates the exemption mechanism key blob, and stores the result in the output buffer.
int genExemptionBlob​(byte[] output, int outputOffset) Generates the exemption mechanism key blob, and stores the result in the output buffer, starting at outputOffset inclusive.
static ExemptionMechanism getInstance​(String algorithm) Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
static ExemptionMechanism getInstance​(String algorithm,String provider) Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
static ExemptionMechanism getInstance​(String algorithm,Provider provider) Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
String getName() Returns the exemption mechanism name of thisExemptionMechanism object.
int getOutputSize​(int inputLen) Returns the length in bytes that an output buffer would need to be in order to hold the result of the nextgenExemptionBlob operation, given the input length inputLen (in bytes).
Provider getProvider() Returns the provider of this ExemptionMechanism object.
void init​(Key key) Initializes this exemption mechanism with a key.
void init​(Key key,AlgorithmParameters params) Initializes this exemption mechanism with a key and a set of algorithm parameters.
void init​(Key key,AlgorithmParameterSpec params) Initializes this exemption mechanism with a key and a set of algorithm parameters.
boolean isCryptoAllowed​(Key key) Returns whether the result blob has been generated successfully by this exemption mechanism.

Methods declared in class java.lang.Object

[clone](../../java/lang/Object.html#clone%28%29), [equals](../../java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../java/lang/Object.html#finalize%28%29), [getClass](../../java/lang/Object.html#getClass%28%29), [hashCode](../../java/lang/Object.html#hashCode%28%29), [notify](../../java/lang/Object.html#notify%28%29), [notifyAll](../../java/lang/Object.html#notifyAll%28%29), [toString](../../java/lang/Object.html#toString%28%29), [wait](../../java/lang/Object.html#wait%28%29), [wait](../../java/lang/Object.html#wait%28long%29), [wait](../../java/lang/Object.html#wait%28long,int%29)