| java.lang.Object | |
| ↳ | java.security.MessageDigestSpi | 
|  Known Direct Subclasses | 
MessageDigestSpi is the Service Provider Interface (SPI) definition
 for MessageDigest. Examples of digest algorithms are MD5 and SHA. A
 digest is a secure one way hash function for a stream of bytes. It acts like
 a fingerprint for a stream of bytes.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Creates and returns a copy of this  Object. | |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Computes and returns the final hash value for this
  MessageDigestSpi. | |||||||||||
| Computes and stores the final hash value for this
  MessageDigestSpi. | |||||||||||
| Returns the engine digest length in bytes. | |||||||||||
| Puts this  MessageDigestSpiback in an initial state, such that it
 is ready to compute a one way hash value. | |||||||||||
| Updates this  MessageDigestSpiusing the givenbyte[]. | |||||||||||
| Updates this  MessageDigestSpiusing the givenbyte. | |||||||||||
| Updates this  MessageDigestSpiusing the giveninput. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Creates and returns a copy of this Object. The default
 implementation returns a so-called "shallow" copy: It creates a new
 instance of the same class and then copies the field values (including
 object references) from this instance to the new instance. A "deep" copy,
 in contrast, would also recursively clone nested objects. A subclass that
 needs to implement this kind of cloning should call super.clone()
 to create the new instance and then create deep copies of the nested,
 mutable objects.
| CloneNotSupportedException | 
|---|
Computes and returns the final hash value for this
 MessageDigestSpi. After the digest is computed the receiver is
 reset.
Computes and stores the final hash value for this
 MessageDigestSpi. After the digest is computed the receiver is
 reset.
| buf | the buffer to store the result in. | 
|---|---|
| offset | the index of the first byte in bufto store in. | 
| len | the number of bytes allocated for the digest. | 
buf.| DigestException | if an error occures. | 
|---|---|
| IllegalArgumentException | if offsetorlenare not valid in respect tobuf. | 
Returns the engine digest length in bytes. If the implementation does not
 implement this function 0 is returned.
0.
Puts this MessageDigestSpi back in an initial state, such that it
 is ready to compute a one way hash value.
Updates this MessageDigestSpi using the given byte[].
| input | the bytearray. | 
|---|---|
| offset | the index of the first byte in inputto update from. | 
| len | the number of bytes in inputto update from. | 
| IllegalArgumentException | if offsetorlenare not valid in respect toinput. | 
|---|
Updates this MessageDigestSpi using the given byte.
| input | the byteto update thisMessageDigestSpiwith. | 
|---|
Updates this MessageDigestSpi using the given input.
| input | the ByteBuffer. | 
|---|