|
|||||||||
| 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
|
+--de.flexiprovider.common.mode.ModeParameters
This class is used as an opaque representation of initialization vectors used as mode parameters. ASN.1/DER encoding and decoding are supported. Parameters are encoded as
ModeParameters = OCTET STRING (SIZE 8) IV
| Constructor Summary | |
ModeParameters()
|
|
| Method Summary | |
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. |
byte[] |
getEncoded()
Encode the parameters according to the primary encoding format (ASN.1). |
byte[] |
getEncoded(java.lang.String format)
Return the parameters encoded in the specified format. |
AlgorithmParameterSpec |
getParameterSpec(java.lang.Class paramSpec)
Return a (transparent) specification of this parameters object. |
void |
init(AlgorithmParameterSpec paramSpec)
Initialize this parameters object using the parameters specified in paramSpec. |
void |
init(byte[] encParams)
Import the specified parameters and decodes them according to the primary decoding format for parameters. |
void |
init(byte[] params,
java.lang.String format)
Import the specified parameters and decodes them according to the specified decoding format. |
java.lang.String |
toString()
|
| Methods inherited from class de.flexiprovider.api.parameters.AlgorithmParameters |
engineGetEncoded, engineGetEncoded, engineInit, engineInit, engineToString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public ModeParameters()
| 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. This method overrides the corresponding method of
AlgorithmParameters in order to provide support for
IvParameterSpec.engineInit in class AlgorithmParametersparams - the parameter specificationjava.security.spec.InvalidParameterSpecException - if paramSpec is inappropriate for
initialization.
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. This method
overrides the corresponding method of AlgorithmParameters in
order to provide support for IvParameterSpec.engineGetParameterSpec in class AlgorithmParametersparamSpec - 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.
public final void init(AlgorithmParameterSpec paramSpec)
throws InvalidParameterSpecException
init in class AlgorithmParametersparamSpec - the parameter specificationInvalidParameterSpecException - if the given parameter specification is inappropriate for
the initialization of this parameter object.
public final void init(byte[] encParams)
throws java.io.IOException
init in class AlgorithmParametersencParams - the encoded parametersjava.io.IOException - on decoding errors
public final void init(byte[] params,
java.lang.String format)
throws java.io.IOException
init in class AlgorithmParametersparams - the encoded parameters.format - the name of the decoding format.java.io.IOException - if format is not equal to "ASN.1".public final byte[] getEncoded()
AlgorithmParametersgetEncoded in class AlgorithmParameters
public final byte[] getEncoded(java.lang.String format)
throws java.io.IOException
getEncoded in class AlgorithmParametersformat - the encoding formatjava.io.IOException - if format is not equal to "ASN.1".
public final AlgorithmParameterSpec getParameterSpec(java.lang.Class paramSpec)
throws InvalidParameterSpecException
ModeParameterSpec is
supported.getParameterSpec in class AlgorithmParametersparamSpec - the specification class in which the parameters should be
returnedInvalidParameterSpecException - if the requested parameter specification is inappropriate
for this parameters object.public final java.lang.String toString()
toString in class AlgorithmParameters
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||