public abstract class AlgorithmParametersSpi extends Object
Constructor and Description |
---|
AlgorithmParametersSpi()
Creates a new instance of AlgorithmParametersSpi
|
Modifier and Type | Method and Description |
---|---|
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> |
engineGetParameterSpec(Class<T> paramSpec)
Returns a specification of this AlgorithmParameters object.
|
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.
|
public AlgorithmParametersSpi()
protected abstract void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
paramSpec
- A AlgorithmParameterSpec to initialize withInvalidParameterSpecException
- For an inapporiate
ParameterSpec classprotected abstract void engineInit(byte[] params) throws IOException
params
- Parameters to initialize withIOException
- Decoding Errorprotected abstract void engineInit(byte[] params, String format) throws IOException
params
- Parameters to initialize withformat
- Name of decoding format to useIOException
- Decoding Errorprotected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException
paramSpec
- Class to return AlgorithmParameters inInvalidParameterSpecException
- if the paramSpec is an
invalid parameter classprotected abstract byte[] engineGetEncoded() throws IOException
IOException
protected abstract byte[] engineGetEncoded(String format) throws IOException
format
is null
then the
primary encoding format is used, the ASN.1 format,
if it exists for the specified type.IOException
protected abstract String engineToString()