java.security
Class AlgorithmParametersSpi
java.lang.Object
|
+--java.security.AlgorithmParametersSpi
public abstract class
AlgorithmParametersSpiextends
ObjectAlgorithmParametersSpi is the Service Provider Interface
for the Algorithm Parameters class. This class is used
to manage the algorithm parameters.
Since:Author:AlgorithmParametersSpi
public AlgorithmParametersSpi()
Creates a new instance of AlgorithmParametersSpi
engineGetEncoded
protected byte[] engineGetEncoded()
Returns the parameters in the default encoding format.
The primary encoding format is ASN.1 format if it exists
for the specified type.
Returns:
- byte array representing the parameters
engineGetEncoded
protected byte[] engineGetEncoded(java.lang.String format)
Returns the parameters in the specified encoding format.
If format
is null
then the
primary encoding format is used, the ASN.1 format,
if it exists for the specified type.
Parameters:
Returns:
- byte array representing the parameters
engineGetParameterSpec
protected AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
Returns a specification of this AlgorithmParameters object.
paramSpec identifies the class to return the AlgortihmParameters
in.
Parameters:
Returns:
- the parameter specification
Throws:
engineInit
protected void engineInit(byte[] )
Initializes the engine with the specified
parameters stored in the byte array and decodes them
according to the ASN.1 specification. If the ASN.1
specification exists then it succeeds or else it throws
IOException.
Parameters:
Throws:
engineInit
protected void engineInit(byte[] , java.lang.String format)
Initializes the engine with the specified
parameters stored in the byte array and decodes them
according to the specified decoding specification.
If format is null, then it is decoded using the ASN.1
specification if it exists or else it throws
IOException.
Parameters:
Throws:
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initializes the engine with the specified
AlgorithmParameterSpec class.
Parameters:
Throws:
engineToString
protected String engineToString()
Returns a string describing the parameters in the
AlgorithmParametersSpi class.
Returns:
- A string representing the format of the parameters.