Class jls.security.MessageDigest

This class represents a cryptographic hash function. The message digests are MD5(not implemented) and SHA1.
Defined in: MessageDigest.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
jls.security.MessageDigest.availableMessageDigests()
Returns available message digests.
 
Completes the digest and returns a buffer.
 
Returns the algorithm name.
<static>  
jls.security.MessageDigest.getInstance(algorithm)
Returns the specified message digest.
<static>  
jls.security.MessageDigest.isSupported(algorithm)
Tells if the specified algorithm is supported.
 
Resets the digest.
 
update(buffer)
Updates the digest with a specified buffer.
 
Updates the digest with a specified byte.
 
updateString(buffer, csn)
Updates the digest with a specified string.
Class Detail
jls.security.MessageDigest()
Method Detail
<static> {Array} jls.security.MessageDigest.availableMessageDigests()
Returns available message digests.
Returns:
{Array} The available message digests.

{jls.lang.ByteBuffer} digest()
Completes the digest and returns a buffer.
Returns:
{jls.lang.ByteBuffer} The digested buffer.

{String} getAlgorithm()
Returns the algorithm name.
Returns:
{String} The algorithm name.

<static> {jls.security.MessageDigest} jls.security.MessageDigest.getInstance(algorithm)
Returns the specified message digest.
Parameters:
{String} algorithm
The message digest algorithm name.
Returns:
{jls.security.MessageDigest} The message digest.

<static> {Boolean} jls.security.MessageDigest.isSupported(algorithm)
Tells if the specified algorithm is supported.
Parameters:
{String} algorithm
The algorithm name.
Returns:
{Boolean} true if the specified algorithm is supported.

reset()
Resets the digest.

update(buffer)
Updates the digest with a specified buffer.
Parameters:
{jls.lang.ByteBuffer} buffer
The buffer to update.

updateByte(b)
Updates the digest with a specified byte.
Parameters:
{Number} b
The byte to update.

updateString(buffer, csn)
Updates the digest with a specified string.
Parameters:
{String} buffer
The string to update.
csn

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)