com.amx.duet.tools.security
Class SecurityUtil

java.lang.Object
  extended bycom.amx.duet.tools.security.SecurityUtil

public class SecurityUtil
extends java.lang.Object

Utility class containing various encryption and decryption routines.


Constructor Summary
SecurityUtil()
           
 
Method Summary
static java.lang.String encodeBase64(java.lang.String str)
          Allows users to create Base64 encrypted strings
static java.lang.String encodeMD5(java.lang.String[] strArray)
          Allows user to MD5 encrypt an array of strings together into a single encrypted string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtil

public SecurityUtil()
Method Detail

encodeMD5

public static final java.lang.String encodeMD5(java.lang.String[] strArray)
                                        throws java.security.NoSuchAlgorithmException
Allows user to MD5 encrypt an array of strings together into a single encrypted string

Parameters:
strArray - array of strings to encrypt
Returns:
an MD5 encrypted string
Throws:
java.security.NoSuchAlgorithmException

encodeBase64

public static final java.lang.String encodeBase64(java.lang.String str)
Allows users to create Base64 encrypted strings

Parameters:
str - string to encrypt
Returns:
a Base64 encrypted string


Copyright © 2008 AMX LLC. All Rights Reserved.