Name

Class javax.crypto.ExemptionMechanism

Synopsis

This class can be used by implementors of a JCE package to provide hooks into the exemption mechanisms of various governments. This is done in order to satisfy the import and/or export restrictions of those governments, who might require (for example) a key escrow implemented with this class. It is not used by Sun’s implementation of JCE.

Class Definition

public class javax.crypto.ExemptionMechanism
    extends java.lang.Object {

    // Constructors
    protected ExemptionMechanism(ExemptionMechanismSpi,
                                 Provider, String);

    // Class Methods
    public static final ExemptionMechanism getInstance(String);
    public static final ExemptionMechanism getInstance(String, String);

    // Instance Methods
    public final int genExemptionBlob(byte[], int);
    public final byte[] genExemptionBlob(  );
    public final int genExemptionBlob(byte[]);
    public final String getName(  );
    public final int getOutputSize(int);
    public final Provider getProvider(  );
    public final void init(Key, AlgorithmParameterSpec);
    public final void init(Key, AlgorithmParameters);
    public final void init(Key);
    public final boolean isCryptoAllowed(Key);

    // Protected Instance Methods
    protected void finalize(  );
}

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.