java.lang.Object
org.seppiko.commons.utils.crypto.NMPUtil
- All Implemented Interfaces:
Serializable
Algorithm Name/Mode/Padding utility
- Author:
- Leonard Woo
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NMPUtil
Parser algorithm string.- Parameters:
algorithm-Name[/Mode[/Padding]].- Throws:
NoSuchAlgorithmException- Algorithm String format is wrong.NullPointerException- algorithm isnull.
-
NMPUtil
Initialization Name/Mode/Padding- Parameters:
name- Name.mode- Mode.padding- Padding.- Throws:
NullPointerException- Name isnull.
-
-
Method Details
-
getName
Get name- Returns:
- Name
-
getMode
Get mode- Returns:
- Mode
-
getPadding
Get padding- Returns:
- Padding
-
equals
CheckNMPUtilinstance -
hashCode
public int hashCode()NMPUtil object hashcode -
toString
Re-splicing algorithm name
-