Package com.exedio.cope.util
Class MessageDigestFactory
- java.lang.Object
-
- com.exedio.cope.util.MessageDigestFactory
-
- All Implemented Interfaces:
Serializable
public final class MessageDigestFactory extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MessageDigestFactory(String algorithm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
digest(byte[] input)
boolean
equals(Object other)
String
getAlgorithm()
byte[]
getDigestForEmptyByteSequence()
String
getDigestForEmptyByteSequenceHex()
int
getLength()
int
getLengthHex()
int
hashCode()
MessageDigest
newInstance()
String
toString()
-
-
-
Constructor Detail
-
MessageDigestFactory
public MessageDigestFactory(String algorithm)
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
-
getLength
public int getLength()
-
getLengthHex
public int getLengthHex()
-
getDigestForEmptyByteSequence
public byte[] getDigestForEmptyByteSequence()
-
getDigestForEmptyByteSequenceHex
public String getDigestForEmptyByteSequenceHex()
-
newInstance
public MessageDigest newInstance()
-
digest
public byte[] digest(byte[] input)
-
-