public abstract class AlgorithmParametersSpi extends Object
AlgorithmParametersSpi is the Service Provider Interface (SPI)
definition for AlgorithmParameters.AlgorithmParameters| Constructor and Description |
|---|
AlgorithmParametersSpi() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte[] |
engineGetEncoded()
Returns the parameters in their 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 the
AlgorithmParameterSpec for this AlgorithmParametersSpi. |
protected abstract void |
engineInit(AlgorithmParameterSpec paramSpec)
Initializes this
AlgorithmParametersSpi with the specified
AlgorithmParameterSpec. |
protected abstract void |
engineInit(byte[] params)
Initializes this
AlgorithmParametersSpi with the specified
byte[] using the default decoding format for parameters. |
protected abstract void |
engineInit(byte[] params,
String format)
Initializes this
AlgorithmParametersSpi with the specified
byte[] using the specified decoding format. |
protected abstract String |
engineToString()
Returns a string containing a concise, human-readable description of this
AlgorithmParametersSpi. |
protected abstract void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
AlgorithmParametersSpi with the specified
AlgorithmParameterSpec.paramSpec - the parameter specification.InvalidParameterSpecException - if this AlgorithmParametersSpi has already been
initialized or the given paramSpec is not appropriate
for initializing this AlgorithmParametersSpi.protected abstract void engineInit(byte[] params)
throws IOException
AlgorithmParametersSpi with the specified
byte[] using the default decoding format for parameters. The
default encoding format is ASN.1.params - the encoded parameters.IOException - if this AlgorithmParametersSpi has already been
initialized, or the parameter could not be encoded.protected abstract void engineInit(byte[] params,
String format)
throws IOException
AlgorithmParametersSpi with the specified
byte[] using the specified decoding format.params - the encoded parameters.format - the name of the decoding format.IOException - if this AlgorithmParametersSpi has already been
initialized, or the parameter could not be encoded.protected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException
AlgorithmParameterSpec for this AlgorithmParametersSpi.paramSpec - the type of the parameter specification in which this
parameters should be converted.AlgorithmParameterSpec for this AlgorithmParametersSpi.InvalidParameterSpecException - if this AlgorithmParametersSpi has already been
initialized, or if this parameters could not be converted to
the specified class.protected abstract byte[] engineGetEncoded()
throws IOException
IOException - if this AlgorithmParametersSpi has already been
initialized, or if this parameters could not be encoded.protected abstract byte[] engineGetEncoded(String format) throws IOException
format - the name of the encoding format.IOException - if this AlgorithmParametersSpi has already been
initialized, or if this parameters could not be encoded.protected abstract String engineToString()
AlgorithmParametersSpi.AlgorithmParametersSpi.