java.security
public abstract class AlgorithmParametersSpi extends Object
Since: 1.2
| Constructor Summary | |
|---|---|
| AlgorithmParametersSpi()
Creates a new instance of AlgorithmParametersSpi | |
| Method Summary | |
|---|---|
| protected abstract byte[] | engineGetEncoded()
Returns the parameters in the default encoding format.
|
| protected abstract byte[] | engineGetEncoded(String format)
Returns the parameters in the specified encoding format.
|
| protected abstract <T extends AlgorithmParameterSpec> T | engineGetParameterSpec(Class<T> paramSpec)
Returns a specification of this AlgorithmParameters object.
paramSpec identifies the class to return the AlgortihmParameters
in.
|
| protected abstract void | engineInit(AlgorithmParameterSpec paramSpec)
Initializes the engine with the specified
AlgorithmParameterSpec class.
|
| protected abstract void | engineInit(byte[] params)
Initializes the engine with the specified
parameters stored in the byte array and decodes them
according to the ASN.1 specification. |
| protected abstract void | engineInit(byte[] params, String format)
Initializes the engine with the specified
parameters stored in the byte array and decodes them
according to the specified decoding specification.
|
| protected abstract String | engineToString()
Returns a string describing the parameters in the
AlgorithmParametersSpi class.
|
Returns: byte array representing the parameters
format is null then the
primary encoding format is used, the ASN.1 format,
if it exists for the specified type.
Returns: byte array representing the parameters
Parameters: paramSpec Class to return AlgorithmParameters in
Returns: the parameter specification
Throws: InvalidParameterSpecException if the paramSpec is an invalid parameter class
Parameters: paramSpec A AlgorithmParameterSpec to initialize with
Throws: InvalidParameterSpecException For an inapporiate ParameterSpec class
Parameters: params Parameters to initialize with
Throws: IOException Decoding Error
Parameters: params Parameters to initialize with format Name of decoding format to use
Throws: IOException Decoding Error
Returns: A string representing the format of the parameters.