The Robot Application Programming Interface Delegate Project
RAPID Logo

Sha1Hash Class Reference

Utility class to create a SHA1 hex string.

Collaboration diagram for Sha1Hash:

List of all members.

Public Member Functions

 Sha1Hash ()
Sha1Hash update (byte[] input) throws IllegalStateException
String hexString ()
 digests the data, resets, and returns a hex string hash
byte[] digest () throws IllegalStateException
 digests the data, resets, and returns 40 byte hash

Static Public Member Functions

static String convertToHexString (byte[] data)
 convert a byte array to a hex string
static void main (final String[] args)

Protected Attributes

MessageDigest m_digester

Constructor & Destructor Documentation

Sha1Hash ( )

Member Function Documentation

static String convertToHexString ( byte[]  data) [static]
Parameters:
data
Returns:
byte [] digest ( ) throws IllegalStateException
Returns:
Exceptions:
IllegalStateExceptionif MessageDigest was unable to be initialized
String hexString ( )

Here is the call graph for this function:

static void main ( final String[]  args) [static]

Here is the call graph for this function:

Sha1Hash update ( byte[]  input) throws IllegalStateException
Parameters:
input
Exceptions:
IllegalStateExceptionif MessageDigest was unable to be initialized

Member Data Documentation

MessageDigest m_digester [protected]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines