Module ibm.crypto.ibmjcehybrid
Class RC2ParametersHybrid
java.lang.Object
java.security.AlgorithmParametersSpi
com.ibm.crypto.ibmjcehybrid.provider.RC2ParametersHybrid
This class is a facade for the parameters used with the
RC2 algorithm in various mode (CBC, ECB, OFB, CFB, PCBC).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]
This method returns the algorithm parameters in encoded form.protected byte[]
engineGetEncoded
(String encodingMethod) This method returns the algorithm parameters in encoded form.protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec
(Class<T> paramSpecClass) This method returns the AlgorithmParameters object.protected void
engineInit
(byte[] encoded) This method provides the settings for the AlgorithmParameters.protected void
engineInit
(byte[] encoded, String decodingMethod) This method provides the settings for the AlgorithmParameters.protected void
engineInit
(AlgorithmParameterSpec paramSpec) This method provides the settings for the AlgorithmParameters.protected String
protected String
toString
(boolean isExternalCall) Returns a formatted string describing the parameters.
-
Constructor Details
-
RC2ParametersHybrid
public RC2ParametersHybrid()Creates an instance of the RC2ParametersHybrid class.
-
-
Method Details
-
engineInit
This method provides the settings for the AlgorithmParameters.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
paramSpec
- The settings- Throws:
InvalidParameterSpecException
-
engineInit
This method provides the settings for the AlgorithmParameters.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
encoded
- The settings- Throws:
IOException
-
engineInit
This method provides the settings for the AlgorithmParameters.- Specified by:
engineInit
in classAlgorithmParametersSpi
- Parameters:
encoded
- The settingsdecodingMethod
- How to extract the settings- Throws:
IOException
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> paramSpecClass) throws InvalidParameterSpecException This method returns the AlgorithmParameters object.- Specified by:
engineGetParameterSpec
in classAlgorithmParametersSpi
- Parameters:
paramSpecClass
- The class of the AlgorithmParameters to return- Throws:
InvalidParameterSpecException
-
engineGetEncoded
This method returns the algorithm parameters in encoded form.- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Throws:
IOException
-
engineGetEncoded
This method returns the algorithm parameters in encoded form.- Specified by:
engineGetEncoded
in classAlgorithmParametersSpi
- Parameters:
encodingMethod
- encoding method.- Throws:
IOException
-
engineToString
- Specified by:
engineToString
in classAlgorithmParametersSpi
-
toString
Returns a formatted string describing the parameters.- Parameters:
isExternalCall
- specifies whether the call is from an external caller or from a method in this class.- Returns:
- this object represented as a string.
-