Module ibm.crypto.ibmjcehybrid
Class BlowFishParametersHybrid
java.lang.Object
java.security.AlgorithmParametersSpi
com.ibm.crypto.ibmjcehybrid.provider.BlowFishParametersHybrid
This class is a facade for the parameter (IV) used with the Blowfish
algorithm in feedback-mode.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of the BlowFishParametersHybrid class. -
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
-
BlowFishParametersHybrid
public BlowFishParametersHybrid()Creates an instance of the BlowFishParametersHybrid 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.
-