FileDocCategorySizeDatePackage
AlgorithmParametersSpi.javaAPI DocAndroid 1.5 API5076Wed May 06 22:41:04 BST 2009java.security

AlgorithmParametersSpi

public abstract class AlgorithmParametersSpi extends Object
{@code AlgorithmParametersSpi} is the Service Provider Interface (SPI) definition for {@code AlgorithmParameters}.
see
AlgorithmParameters

Fields Summary
Constructors Summary
Methods Summary
protected abstract byte[]engineGetEncoded()
Returns the parameters in their default encoding format. The default encoding format is ASN.1.

return
the encoded parameters.
throws
IOException if this {@code AlgorithmParametersSpi} has already been initialized, or if this parameters could not be encoded.
since
Android 1.0

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

param
format the name of the encoding format.
return
the encoded parameters.
throws
IOException if this {@code AlgorithmParametersSpi} has already been initialized, or if this parameters could not be encoded.
since
Android 1.0

protected abstract TengineGetParameterSpec(java.lang.Class paramSpec)
Returns the {@code AlgorithmParameterSpec} for this {@code AlgorithmParametersSpi}.

param
paramSpec the type of the parameter specification in which this parameters should be converted.
return
the {@code AlgorithmParameterSpec} for this {@code AlgorithmParametersSpi}.
throws
InvalidParameterSpecException if this {@code AlgorithmParametersSpi} has already been initialized, or if this parameters could not be converted to the specified class.
since
Android 1.0

protected abstract voidengineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initializes this {@code AlgorithmParametersSpi} with the specified {@code AlgorithmParameterSpec}.

param
paramSpec the parameter specification.
throws
InvalidParameterSpecException if this {@code AlgorithmParametersSpi} has already been initialized or the given {@code paramSpec} is not appropriate for initializing this {@code AlgorithmParametersSpi}.
since
Android 1.0

protected abstract voidengineInit(byte[] params)
Initializes this {@code AlgorithmParametersSpi} with the specified {@code byte[]} using the default decoding format for parameters. The default encoding format is ASN.1.

param
params the encoded parameters.
throws
IOException if this {@code AlgorithmParametersSpi} has already been initialized, or the parameter could not be encoded.
since
Android 1.0

protected abstract voidengineInit(byte[] params, java.lang.String format)
Initializes this {@code AlgorithmParametersSpi} with the specified {@code byte[]} using the specified decoding format.

param
params the encoded parameters.
param
format the name of the decoding format.
throws
IOException if this {@code AlgorithmParametersSpi} has already been initialized, or the parameter could not be encoded.
since
Android 1.0

protected abstract java.lang.StringengineToString()
Returns a string containing a concise, human-readable description of this {@code AlgorithmParametersSpi}.

return
a printable representation for this {@code AlgorithmParametersSpi}.
since
Android 1.0