Class Transformation
java.lang.Object
org.apache.commons.crypto.utils.Transformation
Transformation algorithm, mode and padding, in the format "Algorithm/Mode/Padding", for example "AES/CBC/NoPadding".
- Since:
- 1.2.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the algorithm.getMode()Gets the mode.Gets the padding.static TransformationParses a transformation.
-
Method Details
-
parse
public static Transformation parse(String transformation) throws NoSuchAlgorithmException, NoSuchPaddingException Parses a transformation.- Parameters:
transformation- current transformation- Returns:
- the Transformation
- Throws:
NoSuchAlgorithmException- if the algorithm is not supportedNoSuchPaddingException- Thrown when the padding is unsupported.
-
getAlgorithm
-
getMode
-
getPadding
-