|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.crypto.ExemptionMechanismSpi
public abstract class ExemptionMechanismSpi
The Service Provider Interface (SPI) for the ExemptionMechanism
class.
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExemptionMechanismSpi()
Method Detail |
---|
protected abstract byte[] engineGenExemptionBlob() throws ExemptionMechanismException
ExemptionMechanismException
- If generating the
blob fails.protected abstract int engineGenExemptionBlob(byte[] output, int outputOffset) throws ExemptionMechanismException, ShortBufferException
output
- The destination for the key blob.outputOffset
- The index in the output array to start.
ExemptionMechanismException
- If generating the
blob fails.
ShortBufferException
- If the output array is
not large enough for the key blob.protected abstract int engineGetOutputSize(int inputLength)
inputLength
- The input size.
protected abstract void engineInit(Key key) throws ExemptionMechanismException, InvalidKeyException
key
- The key.
ExemptionMechanismException
- If generating the
blob fails.
InvalidKeyException
- If the supplied key
cannot be used.protected abstract void engineInit(Key key, AlgorithmParameters params) throws ExemptionMechanismException, InvalidAlgorithmParameterException, InvalidKeyException
key
- The key.params
- The parameters.
ExemptionMechanismException
- If generating the
blob fails.
java.security.InvalidAlgorithmParameterExceptin
- If the
supplied parameters are inappropriate.
InvalidKeyException
- If the supplied key
cannot be used.
InvalidAlgorithmParameterException
protected abstract void engineInit(Key key, AlgorithmParameterSpec params) throws ExemptionMechanismException, InvalidAlgorithmParameterException, InvalidKeyException
key
- The key.params
- The parameters.
ExemptionMechanismException
- If generating the
blob fails.
java.security.InvalidAlgorithmParameterExceptin
- If the
supplied parameters are inappropriate.
InvalidKeyException
- If the supplied key
cannot be used.
InvalidAlgorithmParameterException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |