com.retek.rsm.domain.security.service
Class UserSignatureUtil

java.lang.Object
  extended bycom.retek.rsm.domain.security.service.UserSignatureUtil

public final class UserSignatureUtil
extends java.lang.Object


Method Summary
static com.retek.platform.util.type.security.UserSignature getUserSignature(java.lang.String plainText)
          Creates a user signature based on the given plaintext and encodes it in base64.
static boolean isSignatureValid(java.lang.String plainText, com.retek.platform.util.type.security.UserSignature userSignature)
          Verifies that the given signature credential is valid for the given plaintext.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUserSignature

public static com.retek.platform.util.type.security.UserSignature getUserSignature(java.lang.String plainText)
Creates a user signature based on the given plaintext and encodes it in base64.

Parameters:
plainText - The plaintext to generate a signature for. (i.e. userName)
Returns:
Returns the generated UserSignature in base64 (aka. ciphertext)

isSignatureValid

public static boolean isSignatureValid(java.lang.String plainText,
                                       com.retek.platform.util.type.security.UserSignature userSignature)
Verifies that the given signature credential is valid for the given plaintext.

Parameters:
plainText - The plaintext associated with the signature. (i.e. userName)
Returns:
Returns true if the given signature credential is valid, otherwise false;