AlgorithmParameters
class, which is used to manage
algorithm parameters.
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.
AlgorithmParameters
, java.security.spec.AlgorithmParameterSpec
, java.security.spec.DSAParameterSpec
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] | Returns: the parameters encoded using their primary encoding format.Returns the parameters in their primary encoding format. |
protected abstract byte[] | Returns: the parameters encoded using the specified encoding scheme.the name of the encoding format. format)Returns the parameters encoded in the specified format. |
protected abstract < the type of the parameter specification to be returned T extends AlgorithmParameterSpec> T | Returns: the parameter specification.the specification class in which
the parameters should be returned. paramSpec)Returns a (transparent) specification of this parameters object. |
protected abstract void | engineInit(AlgorithmParameterSpec
the parameter specification. paramSpec)Initializes this parameters object using the parameters
specified in |
protected abstract void | engineInit(byte[]
the encoded parameters. params)Imports the specified parameters and decodes them according to the primary decoding format for parameters. |
protected abstract void | engineInit(byte[]
the encoded parameters. params, String the name of the decoding format. format)Imports the parameters from |
protected abstract String | Returns: a formatted string describing the parameters.Returns a formatted string describing the parameters. |
AlgorithmParametersSpi | back to summary |
---|---|
public AlgorithmParametersSpi() Constructor for subclasses to call. |
engineGetEncoded | back to summary |
---|---|
protected abstract byte[] engineGetEncoded() throws IOException 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 | back to summary |
---|---|
protected abstract byte[] engineGetEncoded(String format) throws IOException Returns the parameters encoded in the specified format.
If
|
engineGetParameterSpec | back to summary |
---|---|
protected abstract <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpec) throws InvalidParameterSpecException Returns a (transparent) specification of this parameters
object.
|
engineInit | back to summary |
---|---|
protected abstract void engineInit(AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException Initializes this parameters object using the parameters
specified in
|
engineInit | back to summary |
---|---|
protected abstract void engineInit(byte[] params) throws IOException 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 | back to summary |
---|---|
protected abstract void engineInit(byte[] params, String format) throws IOException Imports the parameters from
|
engineToString | back to summary |
---|---|
protected abstract String engineToString() Returns a formatted string describing the parameters.
|