public class WPMAuthenticationHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ERR_ACCESS_DENIED |
static java.lang.String | PARAM_NAME_AUTHNAME |
static java.lang.String | PARAM_NAME_AUTHSTRING |
static java.lang.String | PARAM_NAME_PASSWORD |
Constructor and Description |
---|
WPMAuthenticationHelper()
WPMAuthenticationHelper constructor comment.
|
Modifier and Type | Method and Description |
---|---|
static UserRegistryAccessBean | getAuthenticatedUserRegistry(java.lang.String authString, java.lang.String name, java.lang.String password, CommandContext cmdCtx)
Returns the UserRegistryAccessBean for the WebSphere Commerce Administrator if the supplied credentials for the Administrator (a Payment Manager User) is valid.
|
static java.lang.String | getUserIdFromAuthString(java.lang.String authString)
Gets the userId from the Authentication String.
|
static boolean | isDNof(java.lang.String name, java.lang.String shortname)
Checks if the specified name is the distinguished name of the supplied short name.
|
static TypedProperty | prepareEncodedResponseToPM(java.lang.String textResponse)
Prepare a TypedProperty object for sending text response to Payment Manager.
|
public static final java.lang.String ERR_ACCESS_DENIED
public static final java.lang.String PARAM_NAME_AUTHSTRING
public static final java.lang.String PARAM_NAME_AUTHNAME
public static final java.lang.String PARAM_NAME_PASSWORD
public WPMAuthenticationHelper()
public static UserRegistryAccessBean getAuthenticatedUserRegistry(java.lang.String authString, java.lang.String name, java.lang.String password, CommandContext cmdCtx) throws ECException
The logon ID must be active as well.
public static java.lang.String getUserIdFromAuthString(java.lang.String authString)
public static boolean isDNof(java.lang.String name, java.lang.String shortname)
For WebSphere Commerce the String form of the distinguished name lists the relative distinguished names in the order of increasing hierarchy with the root organization on the right.
public static TypedProperty prepareEncodedResponseToPM(java.lang.String textResponse)