|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.security.AlgorithmParametersSpi
public abstract class AlgorithmParametersSpi
AlgorithmParametersSpi is the Service Provider Interface for the Algorithm Parameters class. This class is used to manage the algorithm parameters.
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
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlgorithmParametersSpi()
Method Detail |
---|
protected abstract void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException
paramSpec
- A AlgorithmParameterSpec to initialize with
InvalidParameterSpecException
- For an inapporiate
ParameterSpec classprotected abstract void engineInit(byte[] params) throws IOException
params
- Parameters to initialize with
IOException
- Decoding Errorprotected abstract void engineInit(byte[] params, String format) throws IOException
params
- Parameters to initialize withformat
- Name of decoding format to use
IOException
- Decoding Errorprotected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException
paramSpec
- Class to return AlgorithmParameters in
InvalidParameterSpecException
- 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |