Class ExemptionMechanism

java.lang.Object
javax.crypto.ExemptionMechanism

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 that use an exemption mechanism may be granted stronger encryption capabilities than those which don't.

Since:
1.4
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExemptionMechanism(ExemptionMechanismSpi exmechSpi, Provider provider, String mechanism)
    Creates an ExemptionMechanism object.
  • Method Summary

    Modifier and Type
    Method
    Description
    final byte[]
    Generates the exemption mechanism key blob.
    final int
    genExemptionBlob(byte[] output)
    Generates the exemption mechanism key blob, and stores the result in the output buffer.
    final 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 final ExemptionMechanism
    getInstance(String algorithm)
    Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
    static final ExemptionMechanism
    getInstance(String algorithm, String provider)
    Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
    static final ExemptionMechanism
    getInstance(String algorithm, Provider provider)
    Returns an ExemptionMechanism object that implements the specified exemption mechanism algorithm.
    final String
    Returns the exemption mechanism name of this ExemptionMechanism object.
    final 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 next genExemptionBlob operation, given the input length inputLen (in bytes).
    final Provider
    Returns the provider of this ExemptionMechanism object.
    final void
    init(Key key)
    Initializes this exemption mechanism with a key.
    final void