Package org.apache.shiro.crypto.hash
Class Md2Hash
- java.lang.Object
-
- org.apache.shiro.codec.CodecSupport
-
- org.apache.shiro.crypto.hash.AbstractHash
-
- org.apache.shiro.crypto.hash.SimpleHash
-
- org.apache.shiro.crypto.hash.Md2Hash
-
- All Implemented Interfaces:
Serializable
,Hash
,ByteSource
public class Md2Hash extends SimpleHash
Generates an MD2 Hash (RFC 1319) from a given input source with an optional salt and hash iterations. See theSimpleHash
parent class JavaDoc for a detailed explanation of Hashing techniques and how the overloaded constructors function.- Since:
- 0.9
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.shiro.util.ByteSource
ByteSource.Util
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALGORITHM_NAME
-
Fields inherited from class org.apache.shiro.codec.CodecSupport
PREFERRED_ENCODING
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Md2Hash
fromBase64String(String base64)
static Md2Hash
fromHexString(String hex)
-
Methods inherited from class org.apache.shiro.crypto.hash.SimpleHash
convertSaltToBytes, convertSourceToBytes, equals, getAlgorithmName, getBytes, getDigest, getIterations, getSalt, hash, hash, hash, hashCode, isEmpty, setBytes, setIterations, setSalt, toBase64, toByteSource, toHex, toString
-
Methods inherited from class org.apache.shiro.codec.CodecSupport
isByteSource, objectToBytes, objectToString, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toBytes, toChars, toChars, toString, toString, toString
-
-
-
-
Field Detail
-
ALGORITHM_NAME
public static final String ALGORITHM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
fromHexString
public static Md2Hash fromHexString(String hex)
-
fromBase64String
public static Md2Hash fromBase64String(String base64)
-
-