Skip to content

Most visited

Recently visited

navigation
Added in API level 1

AlgorithmParametersSpi

public abstract class AlgorithmParametersSpi
extends Object

java.lang.Object
   ↳ java.security.AlgorithmParametersSpi


AlgorithmParametersSpi is the Service Provider Interface (SPI) definition for AlgorithmParameters.

See also:

Summary

Public constructors

AlgorithmParametersSpi()

Protected methods

abstract byte[] engineGetEncoded()

Returns the parameters in their default encoding format.

abstract byte[] engineGetEncoded(String format)

Returns the parameters in the specified encoding format.

abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec)

Returns the AlgorithmParameterSpec for this AlgorithmParametersSpi.

abstract void engineInit(byte[] params)

Initializes this AlgorithmParametersSpi with the specified byte[] using the default decoding format for parameters.

abstract void engineInit(byte[] params, String format)

Initializes this AlgorithmParametersSpi with the specified byte[] using the specified decoding format.

abstract void engineInit(AlgorithmParameterSpec paramSpec)

Initializes this AlgorithmParametersSpi with the specified AlgorithmParameterSpec.

abstract String engineToString()

Returns a string containing a concise, human-readable description of this AlgorithmParametersSpi.

Inherited methods

From class java.lang.Object

Public constructors

AlgorithmParametersSpi

Added in API level 1
AlgorithmParametersSpi ()

Protected methods

engineGetEncoded

Added in API level 1
byte[] engineGetEncoded ()

Returns the parameters in their default encoding format. The default encoding format is ASN.1.

Returns
byte[] the encoded parameters.
Throws
IOException if this AlgorithmParametersSpi has already been initialized, or if this parameters could not be encoded.

engineGetEncoded

Added in API level 1
byte[] engineGetEncoded (String format)

Returns the parameters in the specified encoding format.

Parameters
format String: the name of the encoding format.
Returns
byte[] the encoded parameters.
Throws
IOException if this AlgorithmParametersSpi has already been initialized, or if this parameters could not be encoded.

engineGetParameterSpec

Added in API level 1
T engineGetParameterSpec (Class<T> paramSpec)

Returns the AlgorithmParameterSpec for this AlgorithmParametersSpi.

Parameters
paramSpec Class: the type of the parameter specification in which this parameters should be converted.
Returns
T the AlgorithmParameterSpec for this AlgorithmParametersSpi.
Throws
InvalidParameterSpecException if this AlgorithmParametersSpi has already been initialized, or if this parameters could not be converted to the specified class.

engineInit

Added in API level 1
void engineInit (byte[] params)

Initializes this AlgorithmParametersSpi with the specified byte[] using the default decoding format for parameters. The default encoding format is ASN.1.

Parameters
params byte: the encoded parameters.
Throws
IOException if this AlgorithmParametersSpi has already been initialized, or the parameter could not be encoded.

engineInit

Added in API level 1
void engineInit (byte[] params, 
                String format)

Initializes this AlgorithmParametersSpi with the specified byte[] using the specified decoding format.

Parameters
params byte: the encoded parameters.
format String: the name of the decoding format.
Throws
IOException if this AlgorithmParametersSpi has already been initialized, or the parameter could not be encoded.

engineInit

Added in API level 1
void engineInit (AlgorithmParameterSpec paramSpec)

Initializes this AlgorithmParametersSpi with the specified AlgorithmParameterSpec.

Parameters
paramSpec AlgorithmParameterSpec: the parameter specification.
Throws
InvalidParameterSpecException if this AlgorithmParametersSpi has already been initialized or the given paramSpec is not appropriate for initializing this AlgorithmParametersSpi.

engineToString

Added in API level 1
String engineToString ()

Returns a string containing a concise, human-readable description of this AlgorithmParametersSpi.

Returns
String a printable representation for this AlgorithmParametersSpi.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.