com.ibm.di.plugin.security
Class SecurityHelper

java.lang.Object
  extended by com.ibm.di.plugin.security.SecurityHelper

public class SecurityHelper
extends Object

This class provides simple encode decode of strings


Constructor Summary
SecurityHelper()
           
 
Method Summary
static String convertToASCI(String binary)
          Method converts a binary string to asci.
static String convertToBinary(String asci)
          Method converts a asci string to binary.
static String decode(String stringIn)
          Decode input string using a MessageDigest.
static String encode(String stringIn)
          Encode input string using a MessageDigest.
static String getClearText(String stringIn)
          Decode input string using a MessageDigest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityHelper

public SecurityHelper()
Method Detail

convertToASCI

public static String convertToASCI(String binary)
Method converts a binary string to asci. Every byte will be replaced by two asci characters.

Parameters:
binary - A String representing the value to be converted to ASCI.
Returns:
java.lang.String ecoded string

convertToBinary

public static String convertToBinary(String asci)
Method converts a asci string to binary. Assumes every byte is really a converted binary String. See convertToASCI.

Parameters:
asci - A String representing the value to be converted to binary.
Returns:
java.lang.String ecoded string

decode

public static String decode(String stringIn)
Decode input string using a MessageDigest.

Parameters:
stringIn - A String representing an encoded value
Returns:
java.lang.String decoded string

encode

public static String encode(String stringIn)
Encode input string using a MessageDigest.

Parameters:
stringIn - A String representing the value to be encoded.
Returns:
java.lang.String ecoded string

getClearText

public static String getClearText(String stringIn)
Decode input string using a MessageDigest

Parameters:
stringIn - a String representing an encoded value.
Returns:
java.lang.String decoded string or null if the stringIn parameter is null.