|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.AlgorithmParametersSpi
|
+--de.flexiprovider.api.parameters.AlgorithmParameters
This class defines the interface used to manage algorithm parameters.
AlgorithmParameterSpec| Constructor Summary | |
AlgorithmParameters()
|
|
| Method Summary | |
protected byte[] |
engineGetEncoded()
JCA adapter for FlexiAPI method getEncoded(): return the
parameters in their primary encoding format. |
protected byte[] |
engineGetEncoded(java.lang.String format)
JCA adapter for FlexiAPI method getEncoded(String): return the
parameters in the specified encoding format. |
protected java.security.spec.AlgorithmParameterSpec |
engineGetParameterSpec(java.lang.Class paramSpec)
JCA adapter for FlexiAPI method getParameterSpec(Class): return
a (transparent) specification of this parameters object. |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec params)
JCA adapter for FlexiAPI method init(AlgorithmParameterSpec):
initialize this parameters object using the parameters specified in
paramSpec. |
protected void |
engineInit(byte[] params)
JCA adapter for FlexiAPI method init(byte[]): import the
specified parameters and decode them according to the primary decoding
format for parameters. |
protected void |
engineInit(byte[] params,
java.lang.String format)
JCA adapter for FlexiAPI method init(byte[], String): import
the specified parameters and decode them according to the specified
decoding format. |
protected java.lang.String |
engineToString()
JCA adapter for FlexiAPI method toString(). |
abstract byte[] |
getEncoded()
Encode the parameters according to the primary encoding format (ASN.1). |
abstract byte[] |
getEncoded(java.lang.String format)
Encode the parameters according to the specified encoding format. |
abstract AlgorithmParameterSpec |
getParameterSpec(java.lang.Class paramSpec)
Return a transparent specification of the parameters. |
abstract void |
init(AlgorithmParameterSpec paramSpec)
Initialize the parameters with the given parameter specification. |
abstract void |
init(byte[] encParams)
Import the given encoded parameters and decode them according to the primary encoding format (ASN.1). |
abstract void |
init(byte[] encParams,
java.lang.String format)
Import the given encoded parameters and decode them according to the specified encoding format. |
abstract java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public AlgorithmParameters()
| Method Detail |
protected void engineInit(java.security.spec.AlgorithmParameterSpec params)
throws java.security.spec.InvalidParameterSpecException
init(AlgorithmParameterSpec):
initialize this parameters object using the parameters specified in
paramSpec.engineInit in class java.security.AlgorithmParametersSpiparams - the parameter specificationjava.security.spec.InvalidParameterSpecException - if paramSpec is inappropriate for
initialization.
protected final void engineInit(byte[] params)
throws java.io.IOException
init(byte[]): import the
specified parameters and decode 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 in class java.security.AlgorithmParametersSpiparams - the encoded parametersjava.io.IOException - on decoding errors.
protected final void engineInit(byte[] params,
java.lang.String format)
throws java.io.IOException
init(byte[], String): import
the specified parameters and decode them according to the specified
decoding format. If 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.engineInit in class java.security.AlgorithmParametersSpiparams - the encoded parametersformat - the decoding formatjava.io.IOException - on decoding errors.
protected final byte[] engineGetEncoded()
throws java.io.IOException
getEncoded(): return 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 in class java.security.AlgorithmParametersSpijava.io.IOException - on encoding errors.
protected final byte[] engineGetEncoded(java.lang.String format)
throws java.io.IOException
getEncoded(String): return the
parameters in the specified encoding format. If format is
null, the primary decoding format is used. The primary encoding format
for parameters is ASN.1, if an ASN.1 specification for this type of
parameters exists.engineGetEncoded in class java.security.AlgorithmParametersSpiformat - the encoding formatjava.io.IOException - on encoding errors.
protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec)
throws java.security.spec.InvalidParameterSpecException
getParameterSpec(Class): return
a (transparent) specification of this parameters object.
paramSpec identifies the specification class in which the
parameters should be returned. It could, for example, be
DSAParameterSpec.class , to
indicate that the parameters should be returned in an instance of the
DSAParameterSpec class.engineGetParameterSpec in class java.security.AlgorithmParametersSpiparamSpec - the the specification class in which the parameters should
be returnedjava.security.spec.InvalidParameterSpecException - if the requested parameter specification is inappropriate
for this parameter object.protected final java.lang.String engineToString()
toString().engineToString in class java.security.AlgorithmParametersSpi
public abstract void init(AlgorithmParameterSpec paramSpec)
throws InvalidParameterSpecException
paramSpec - the parameter specificationInvalidParameterSpecException - if the parameter specification is null or of
an unsupported type.
public abstract void init(byte[] encParams)
throws java.io.IOException
encParams - the encoded parametersjava.io.IOException - on decoding errors.
public abstract void init(byte[] encParams,
java.lang.String format)
throws java.io.IOException
encParams - the encoded parametersformat - the encoding formatjava.io.IOException - on decoding errors or if the encoding format is
null or not supported.
public abstract byte[] getEncoded()
throws java.io.IOException
java.io.IOException - on encoding errors.
public abstract byte[] getEncoded(java.lang.String format)
throws java.io.IOException
format - the encoding formatjava.io.IOException - on encoding errors or if the encoding format is
null or not supported.
public abstract AlgorithmParameterSpec getParameterSpec(java.lang.Class paramSpec)
throws InvalidParameterSpecException
paramSpec - the desired parameter specification typeInvalidParameterSpecException - if the parameter specification type is null or
or not supportedpublic abstract java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||