Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.security

Class AlgorithmParametersSpi

java.lang.Object
|
+--java.security.AlgorithmParametersSpi


public abstract class AlgorithmParametersSpi

extends Object

AlgorithmParametersSpi is the Service Provider Interface for the Algorithm Parameters class. This class is used to manage the algorithm parameters.

Since:Author:

Constructor Summary

AlgorithmParametersSpi()

Creates a new instance of AlgorithmParametersSpi

Method Summary

byte[]engineGetEncoded()

Returns the parameters in the default encoding format.
byte[]engineGetEncoded(java.lang.String format)

Returns the parameters in the specified encoding format.
java.security.spec.AlgorithmParameterSpecengineGetParameterSpec(java.lang.Class paramSpec)

Returns a specification of this AlgorithmParameters object.
voidengineInit(java.security.spec.AlgorithmParameterSpec paramSpec)

Initializes the engine with the specified AlgorithmParameterSpec class.
voidengineInit(byte[] )

Initializes the engine with the specified parameters stored in the byte array and decodes them according to the ASN.1 specification.
voidengineInit(byte[] , 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.
java.lang.StringengineToString()

Returns a string describing the parameters in the AlgorithmParametersSpi class.

Constructor Details

AlgorithmParametersSpi

public AlgorithmParametersSpi()

Creates a new instance of AlgorithmParametersSpi


Method Details

engineGetEncoded

protected byte[] engineGetEncoded()

Returns the parameters in the default encoding format. The primary encoding format is ASN.1 format if it exists for the specified type.

Returns:


engineGetEncoded

protected byte[] engineGetEncoded(java.lang.String format)

Returns the parameters in the specified encoding format. If format is null then the primary encoding format is used, the ASN.1 format, if it exists for the specified type.

Parameters:

Returns:


engineGetParameterSpec

protected AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)

Returns a specification of this AlgorithmParameters object. paramSpec identifies the class to return the AlgortihmParameters in.

Parameters:

Returns:

Throws:


engineInit

protected void engineInit(byte[] )

Initializes the engine with the specified parameters stored in the byte array and decodes them according to the ASN.1 specification. If the ASN.1 specification exists then it succeeds or else it throws IOException.

Parameters:

Throws:


engineInit

protected void engineInit(byte[] , 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. If format is null, then it is decoded using the ASN.1 specification if it exists or else it throws IOException.

Parameters:

Throws:


engineInit

protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)

Initializes the engine with the specified AlgorithmParameterSpec class.

Parameters:

Throws:


engineToString

protected String engineToString()

Returns a string describing the parameters in the AlgorithmParametersSpi class.

Returns: