ExemptionMechanism class.
All the abstract methods in this class must be implemented by each
cryptographic service provider who wishes to supply the implementation
of a particular exemption mechanism.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract byte[] | Returns: the new buffer with the result key blob.Generates the exemption mechanism key blob. |
| protected abstract int | Returns: the number of bytes stored inoutputthe buffer for the result output, int the offset in outputOffset)output where the result
is storedGenerates the exemption mechanism key blob, and stores the result in
the |
| protected abstract int | Returns: the required output buffer size (in bytes)the input length (in bytes) inputLen)Returns the length in bytes that an output buffer would need to be in
order to hold the result of the next
|
| protected abstract void | engineInit(Key
the key for this exemption mechanism key)Initializes this exemption mechanism with a key. |
| protected abstract void | engineInit(Key
the key for this exemption mechanism key, AlgorithmParameterSpec the algorithm parameters params)Initializes this exemption mechanism with a key and a set of algorithm parameters. |
| protected abstract void | engineInit(Key
the key for this exemption mechanism key, AlgorithmParameters the algorithm parameters params)Initializes this exemption mechanism with a key and a set of algorithm parameters. |
| ExemptionMechanismSpi | back to summary |
|---|---|
| public ExemptionMechanismSpi() Constructor for subclasses to call. | |
| engineGenExemptionBlob | back to summary |
|---|---|
| protected abstract byte[] engineGenExemptionBlob() throws ExemptionMechanismException Generates the exemption mechanism key blob.
| |
| engineGenExemptionBlob | back to summary |
|---|---|
| protected abstract int engineGenExemptionBlob(byte[] output, int outputOffset) throws ShortBufferException, ExemptionMechanismException Generates the exemption mechanism key blob, and stores the result in
the If the
| |
| engineGetOutputSize | back to summary |
|---|---|
| protected abstract int engineGetOutputSize(int inputLen) Returns the length in bytes that an output buffer would need to be in
order to hold the result of the next
The actual output length of the next
| |
| engineInit | back to summary |
|---|---|
| protected abstract void engineInit(Key key) throws InvalidKeyException, ExemptionMechanismException Initializes this exemption mechanism with a key. If this exemption mechanism requires any algorithm parameters
that cannot be derived from the given
| |
| engineInit | back to summary |
|---|---|
| protected abstract void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException Initializes this exemption mechanism with a key and a set of algorithm parameters. If this exemption mechanism requires any algorithm parameters and
| |
| engineInit | back to summary |
|---|---|
| protected abstract void engineInit(Key key, AlgorithmParameters params) throws InvalidKeyException, InvalidAlgorithmParameterException, ExemptionMechanismException Initializes this exemption mechanism with a key and a set of algorithm parameters. If this exemption mechanism requires any algorithm parameters
and
| |