java.lang.Object | |
↳ | javax.crypto.ExemptionMechanism |
This class implements the functionality of an exemption mechanism such as key recovery, key weakening, or key escrow.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
ExemptionMechanism instance. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Generates the result key blob for this exemption mechanism and stores it
into the
output buffer at offset outputOffset . | |||||||||||
Generates the result key blob for this exemption mechanism and stores it
into the
output buffer. | |||||||||||
Generates the result key blob for this exemption mechanism.
| |||||||||||
Returns a new
ExemptionMechansm instance that provides the
specified exemption mechanism algorithm from the specified provider. | |||||||||||
Returns a new
ExemptionMechanism instance that provides the
specified exemption mechanism algorithm. | |||||||||||
Returns a new
ExemptionMechanism instance that provides the
specified exemption mechanism algorithm from the specified provider. | |||||||||||
Returns the name of this
ExemptionMechanism . | |||||||||||
Returns the size in bytes for the output buffer needed to hold the output
of the next
genExemptionBlob() call, given the specified inputLen (in bytes). | |||||||||||
Returns the provider of this
ExemptionMechanism instance. | |||||||||||
Initializes this
ExemptionMechanism instance with the
specified key and algorithm parameters. | |||||||||||
Initializes this
ExemptionMechanism instance with the
specified key. | |||||||||||
Initializes this
ExemptionMechanism instance with the
specified key and algorithm parameters. | |||||||||||
Returns whether the result blob for this
ExemptionMechanism
instance has been generated successfully and that the specified key is
the same as the one that was used to initialize and generate. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Frees the references to the key used to initialize this instance.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
Creates a ExemptionMechanism
instance.
exmechSpi | the implementation delegate. |
---|---|
provider | the associated provider. |
mechanism | the name of the mechanism. |
Generates the result key blob for this exemption mechanism and stores it
into the output
buffer at offset outputOffset
.
output | the output buffer for the result key blob. |
---|---|
outputOffset | the offset in the output buffer to start. |
output
buffer.IllegalStateException | if this ExemptionMechanism instance is not
initialized. |
---|---|
ShortBufferException | if the provided buffer is too small for the result key blob. |
ExemptionMechanismException | if error(s) occur during generation. |
Generates the result key blob for this exemption mechanism and stores it
into the output
buffer.
output | the output buffer for the result key blob. |
---|
output
buffer.IllegalStateException | if this ExemptionMechanism instance is not
initialized. |
---|---|
ShortBufferException | if the provided buffer is too small for the result key blob. |
ExemptionMechanismException | if error(s) occur during generation. |
Generates the result key blob for this exemption mechanism.
IllegalStateException | if this ExemptionMechanism instance is not
initialized. |
---|---|
ExemptionMechanismException | if error(s) occur during generation. |
Returns a new ExemptionMechansm
instance that provides the
specified exemption mechanism algorithm from the specified provider.
algorithm | the name of the requested exemption mechanism. |
---|---|
provider | the name of the provider that is providing the algorithm. |
ExemptionMechanism
instance.NoSuchAlgorithmException | if the specified algorithm is not provided by the specified provider. |
---|---|
NoSuchProviderException | if the specified provider is not available. |
NullPointerException | if the algorithm parameter is null . |
IllegalArgumentException | if the provider parameter is null .
|
Returns a new ExemptionMechanism
instance that provides the
specified exemption mechanism algorithm.
algorithm | the name of the requested exemption mechanism. |
---|
ExemptionMechanism
instance.NoSuchAlgorithmException | if the specified algorithm is not available by any provider. |
---|---|
NullPointerException | if the algorithm parameter is null .
|
Returns a new ExemptionMechanism
instance that provides the
specified exemption mechanism algorithm from the specified provider.
algorithm | the name of the requested exemption mechanism. |
---|---|
provider | the provider that is providing the algorithm. |
ExemptionMechanism
instance.NoSuchAlgorithmException | if the specified algorithm is not provided by the specified provider. |
---|---|
NullPointerException | if the algorithm parameter is null . |
IllegalArgumentException | if the provider parameter is null .
|
Returns the name of this ExemptionMechanism
.
ExemptionMechanism
.
Returns the size in bytes for the output buffer needed to hold the output
of the next genExemptionBlob()
call, given the specified inputLen
(in bytes).
inputLen | the specified input length (in bytes). |
---|
IllegalStateException | if this ExemptionMechanism instance is not
initialized.
|
---|
Returns the provider of this ExemptionMechanism
instance.
ExemptionMechanism
instance.
Initializes this ExemptionMechanism
instance with the
specified key and algorithm parameters.
key | the key to initialize this instance with. |
---|---|
param | the parameters for this exemption mechanism algorithm. |
InvalidKeyException | if the key cannot be used to initialize this mechanism. |
---|---|
InvalidAlgorithmParameterException | the the parameters cannot be used to initialize this mechanism. |
ExemptionMechanismException | if error(s) occur during initialization. |
Initializes this ExemptionMechanism
instance with the
specified key.
key | the key to initialize this instance with. |
---|
InvalidKeyException | if the key cannot be used to initialize this mechanism. |
---|---|
ExemptionMechanismException | if error(s) occur during initialization. |
Initializes this ExemptionMechanism
instance with the
specified key and algorithm parameters.
key | the key to initialize this instance with. |
---|---|
param | the parameters for this exemption mechanism algorithm. |
InvalidKeyException | if the key cannot be used to initialize this mechanism. |
---|---|
InvalidAlgorithmParameterException | if the parameters cannot be used to initialize this mechanism. |
ExemptionMechanismException | if error(s) occur during initialization. |
Returns whether the result blob for this ExemptionMechanism
instance has been generated successfully and that the specified key is
the same as the one that was used to initialize and generate.
key | the key to verify. |
---|
ExemptionMechanism
instance has been generated successfully.ExemptionMechanismException | if an error occurs while determining whether the result blob has been generated successfully. |
---|
Frees the references to the key used to initialize this instance.