AlgorithmParametersSpi

This class defines the <i>Service Provider Interface</i> (<b>SPI</b>) for the {@code AlgorithmParameters} class, which is used to manage algorithm parameters.

<p> All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply parameter management for a particular algorithm.

@author Jan Luehe

More...

Members

Functions

engineGetEncoded
byte[] engineGetEncoded()

Returns the parameters in their primary encoding format. The primary encoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

engineGetEncoded
byte[] engineGetEncoded(string format)

Returns the parameters encoded in the specified format. If {@code format} is null, the primary encoding format for parameters is used. The primary encoding format is ASN.1, if an ASN.1 specification for these parameters exists.

engineInit
void engineInit(AlgorithmParameterSpec paramSpec)

Initializes this parameters object using the parameters specified in {@code paramSpec}.

engineInit
void engineInit(byte[] params)

Imports the specified parameters and decodes them according to the primary decoding format for parameters. The primary decoding format for parameters is ASN.1, if an ASN.1 specification for this type of parameters exists.

engineInit
void engineInit(byte[] params, string format)

Imports the parameters from {@code params} and decodes them according to the specified decoding format. If {@code format} is null, the primary decoding format for parameters is used. The primary decoding format is ASN.1, if an ASN.1 specification for these parameters exists.

engineToString
string engineToString()

Returns a formatted string describing the parameters.

Detailed Description

@see AlgorithmParameters @see java.security.spec.AlgorithmParameterSpec @see java.security.spec.DSAParameterSpec

@since 1.2

Meta