| java.lang.Object java.security.MessageDigestSpi java.security.MessageDigest
Method Summary | |
public Object | clone() | public byte[] | digest() Computes and answers the final hash value that the receiver represents. | public int | digest(byte[] buf, int offset, int len) | public byte[] | digest(byte[] input) | final public String | getAlgorithm() Answers the standard Java Security name for the algorithm being used by
the receiver. | final public int | getDigestLength() Return the engine digest length in bytes. | public static MessageDigest | getInstance(String algorithm) | public static MessageDigest | getInstance(String algorithm, String provider) | public static MessageDigest | getInstance(String algorithm, Provider provider) Answers a new MessageDigest which is capable of running the algorithm
described by the argument. | final public Provider | getProvider() Returns the Provider of the digest represented by the receiver. | public static boolean | isEqual(byte[] digesta, byte[] digestb) Does a simply byte-per-byte compare of the two digests. | public void | reset() Puts the receiver back in an initial state, such that it is ready to
compute a new hash. | public String | toString() Answers a string containing a concise, human-readable description of the
receiver. | public void | update(byte arg0) Includes the argument in the hash value computed by the receiver. | public void | update(byte[] input, int offset, int len) | public void | update(byte[] input) | final public void | update(ByteBuffer input) |
MessageDigest | protected MessageDigest(String algorithm)(Code) | | |
digest | public byte[] digest()(Code) | | Computes and answers the final hash value that the receiver represents.
After the digest is computed the receiver is reset.
the hash the receiver computed See Also: MessageDigest.reset |
digest | public byte[] digest(byte[] input)(Code) | | |
getAlgorithm | final public String getAlgorithm()(Code) | | Answers the standard Java Security name for the algorithm being used by
the receiver.
String the name of the algorithm |
getDigestLength | final public int getDigestLength()(Code) | | Return the engine digest length in bytes. Default is 0.
int the engine digest length in bytes |
getInstance | public static MessageDigest getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException(Code) | | Answers a new MessageDigest which is capable of running the algorithm
described by the argument. The result will be an instance of a subclass
of MessageDigest which implements that algorithm.
Parameters: algorithm - java.lang.String Name of the algorithm desired Parameters: provider - Provider Provider which has to implement the algorithm MessageDigest a concrete implementation for the algorithmdesired. exception: NoSuchAlgorithmException - If the algorithm cannot be found |
getProvider | final public Provider getProvider()(Code) | | Returns the Provider of the digest represented by the receiver.
Provider an instance of a subclass of java.security.Provider |
isEqual | public static boolean isEqual(byte[] digesta, byte[] digestb)(Code) | | Does a simply byte-per-byte compare of the two digests.
Parameters: digesta - One of the digests to compare Parameters: digestb - The digest to compare to true if the two hashes are equalfalse if the two hashes are not equal |
reset | public void reset()(Code) | | Puts the receiver back in an initial state, such that it is ready to
compute a new hash.
|
toString | public String toString()(Code) | | Answers a string containing a concise, human-readable description of the
receiver.
a printable representation for the receiver. |
update | public void update(byte arg0)(Code) | | Includes the argument in the hash value computed by the receiver.
Parameters: arg0 - byte the byte to feed to the hash algorithm See Also: MessageDigest.reset() |
update | public void update(byte[] input, int offset, int len)(Code) | | |
update | public void update(byte[] input)(Code) | | |
|
|