com.SecurePlay.SPUInteropUtilJ2SE
Class SPUInteropUtilClass

java.lang.Object
  extended bycom.SecurePlay.SPUInteropUtilJ2SE.SPUInteropUtilClass

public class SPUInteropUtilClass
extends java.lang.Object

Author:
IT GlobalSecure
See Also:
SecurePlay License Information
 

Constructor Summary
SPUInteropUtilClass()
           
 
Method Summary
static byte[] getHashText(java.lang.String plainText, java.lang.String algorithm)
          This method gets the hashed string of a text.
static java.util.Hashtable HashtableClone(java.util.Hashtable htbl)
          Wrapps the .clone() method of Hashtable.
static byte[] SPIclone(byte[] byteArr)
          This method clones a String array.
static java.lang.String[] SPIclone(java.lang.String[] strArr)
          This method clones a String array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SPUInteropUtilClass

public SPUInteropUtilClass()
Method Detail

SPIclone

public static java.lang.String[] SPIclone(java.lang.String[] strArr)
This method clones a String array.

Parameters:
strArr - String[] - Atring array to be cloned.
Returns:
String[] - cloned copy of the String array.

SPIclone

public static byte[] SPIclone(byte[] byteArr)
This method clones a String array.

Parameters:
byteArr - byte[] - Atring array to be cloned.
Returns:
String[] - cloned copy of the String array.

getHashText

public static byte[] getHashText(java.lang.String plainText,
                                 java.lang.String algorithm)
This method gets the hashed string of a text.

Parameters:
plainText - String - string to be hashed
algorithm - String - The algorithm to use like MD2, MD5, SHA-1, etc.
Returns:
hash - String - the hashed string

HashtableClone

public static java.util.Hashtable HashtableClone(java.util.Hashtable htbl)
Wrapps the .clone() method of Hashtable. (to support ME)

Parameters:
htbl - Hashtable - hashtable to be cloned.
Returns:
Hashtable - the cloned instance of the hashtable.