lilypad.client.connect.api.util
Class SecurityUtils

java.lang.Object
  extended by lilypad.client.connect.api.util.SecurityUtils

public class SecurityUtils
extends java.lang.Object


Constructor Summary
SecurityUtils()
           
 
Method Summary
static java.lang.String shaHex(byte[]... bytesArray)
          Calculates a SHA-1 Hex-Encoded Hash of an input.
static java.lang.String shaHex(java.lang.String string)
          Calculates a SHA-1 Hex-Encoded Hash of a String's bytes given the default system Charset.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtils

public SecurityUtils()
Method Detail

shaHex

public static java.lang.String shaHex(java.lang.String string)
Calculates a SHA-1 Hex-Encoded Hash of a String's bytes given the default system Charset.

Parameters:
string - input by which to derive the hash
Returns:
SHA-1 Hex-Encoded Hash derived from the input

shaHex

public static java.lang.String shaHex(byte[]... bytesArray)
Calculates a SHA-1 Hex-Encoded Hash of an input.

Parameters:
bytesArray - input by which to derive the hash
Returns:
SHA-1 Hex-Encoded Hash derived from the input