javax.crypto
public abstract class ExemptionMechanismSpi extends Object
Since: 1.4
Constructor Summary | |
---|---|
ExemptionMechanismSpi()
Create a new exemption mechanism SPI. |
Method Summary | |
---|---|
protected abstract byte[] | engineGenExemptionBlob()
Return a key blob for the key that this mechanism was initialized
with.
|
protected abstract int | engineGenExemptionBlob(byte[] output, int outputOffset)
Generate a key blob for the key that this mechanism was initialized
with, storing it into the given byte array.
|
protected abstract int | engineGetOutputSize(int inputLength)
Get the size of the output blob given an input key size. |
protected abstract void | engineInit(Key key)
Initialize this mechanism with a key.
|
protected abstract void | engineInit(Key key, AlgorithmParameters params)
Initialize this mechanism with a key and parameters.
|
protected abstract void | engineInit(Key key, AlgorithmParameterSpec params)
Initialize this mechanism with a key and parameters.
|
Returns: The key blob.
Throws: javax.crypto.ExemptionMechanismException If generating the blob fails.
Parameters: output The destination for the key blob. outputOffset The index in the output array to start.
Returns: The size of the key blob.
Throws: javax.crypto.ExemptionMechanismException If generating the blob fails. javax.crypto.ShortBufferException If the output array is not large enough for the key blob.
Parameters: inputLength The input size.
Returns: The output size.
Parameters: key The key.
Throws: javax.crypto.ExemptionMechanismException If generating the blob fails. java.security.InvalidKeyException If the supplied key cannot be used.
Parameters: key The key. params The parameters.
Throws: javax.crypto.ExemptionMechanismException If generating the blob fails. java.security.InvalidAlgorithmParameterExceptin If the supplied parameters are inappropriate. java.security.InvalidKeyException If the supplied key cannot be used.
Parameters: key The key. params The parameters.
Throws: javax.crypto.ExemptionMechanismException If generating the blob fails. java.security.InvalidAlgorithmParameterExceptin If the supplied parameters are inappropriate. java.security.InvalidKeyException If the supplied key cannot be used.