public abstract class AlgorithmParametersSpi extends java.lang.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(java.lang.String format)
Returns the parameters in the specified encoding format.
|
protected abstract <T extends java.security.spec.AlgorithmParameterSpec> |
engineGetParameterSpec(java.lang.Class<T> paramSpec)
Returns a specification of this AlgorithmParameters object.
|
protected abstract void |
engineInit(java.security.spec.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,
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.
|
protected abstract java.lang.String |
engineToString()
Returns a string describing the parameters in the
AlgorithmParametersSpi class.
|
public AlgorithmParametersSpi()
protected abstract void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
paramSpec - A AlgorithmParameterSpec to initialize withjava.security.spec.InvalidParameterSpecException - For an inapporiate
ParameterSpec classprotected abstract void engineInit(byte[] params) throws java.io.IOException
params - Parameters to initialize withjava.io.IOException - Decoding Errorprotected abstract void engineInit(byte[] params, java.lang.String format) throws java.io.IOException
params - Parameters to initialize withformat - Name of decoding format to usejava.io.IOException - Decoding Errorprotected abstract <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> paramSpec) throws java.security.spec.InvalidParameterSpecException
paramSpec - Class to return AlgorithmParameters injava.security.spec.InvalidParameterSpecException - if the paramSpec is an
invalid parameter classprotected abstract byte[] engineGetEncoded() throws java.io.IOException
java.io.IOExceptionprotected abstract byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException
format is null then the
primary encoding format is used, the ASN.1 format,
if it exists for the specified type.java.io.IOExceptionprotected abstract java.lang.String engineToString()