public final class MVCPortletCredentialService extends java.lang.Object implements PortletCredentialPlugIn
WebSphere Portal server authenticates the user, and the credentials are passed to WebSphere Commerce. These credentials map the portal user to an appropriate WebSphere Commerce user in the member subsystem. This mapping of credentials achieves the single sign-on experience. Subsequent requests for the verification of WebSphere Portal credentials are ignored a single sign-on session has been established.
This credential plug-in provides several services to the authentication callback handler to retrieve credential information of the current Portal user. These services include retrieving the LTPA token, WebSphere Commerce identity token, WebSphere Portal user name and password, and distinguish name (DN). It also provides a service to generate the authentication callback handler object.
Constructor and Description |
---|
MVCPortletCredentialService() |
Modifier and Type | Method and Description |
---|---|
void | destroy()
Destroy routine for the plugin before shutting down.
|
java.lang.String | getAuthenticationType(javax.portlet.PortletRequest portletRequest)
Retrieves the authentication type from the portlet preferences in the given request.
|
javax.security.auth.callback.CallbackHandler | getCallbackHandler(javax.portlet.PortletRequest portletRequest)
Creates a new authentication callback handler.
|
java.lang.String | getDN(javax.portlet.PortletRequest portletRequest)
Returns the user DN string from the Portal Subject.
|
IdentityTokenCallback | getIdentityTokenCallback(javax.portlet.PortletRequest portletRequest)
Returns the identity token callback object from either the PortletSession or from the BCS service.
|
java.lang.String | getLTPAToken(javax.portlet.PortletRequest portletRequest)
Returns the LTPA token from the Portal Subject.
|
void | getUsernamePassword(javax.portlet.PortletRequest portletRequest, java.lang.StringBuffer userId, java.lang.StringBuffer password)
Returns the userid and password from the Portal Subject.
|
void | init(javax.portlet.PortletConfig portletConfig)
Initialization routine for the plugin on starting up.
|
boolean | isAuthenticated(javax.portlet.PortletRequest portletRequest)
Checks whether the current user has been authenticated.
|
public javax.security.auth.callback.CallbackHandler getCallbackHandler(javax.portlet.PortletRequest portletRequest)
public void init(javax.portlet.PortletConfig portletConfig) throws javax.portlet.PortletException
public void destroy() throws javax.portlet.PortletException
public void getUsernamePassword(javax.portlet.PortletRequest portletRequest, java.lang.StringBuffer userId, java.lang.StringBuffer password) throws MVCPortletSystemException
public java.lang.String getDN(javax.portlet.PortletRequest portletRequest) throws MVCPortletSystemException
public java.lang.String getLTPAToken(javax.portlet.PortletRequest portletRequest) throws MVCPortletSystemException
public IdentityTokenCallback getIdentityTokenCallback(javax.portlet.PortletRequest portletRequest) throws MVCPortletSystemException
public java.lang.String getAuthenticationType(javax.portlet.PortletRequest portletRequest)
public boolean isAuthenticated(javax.portlet.PortletRequest portletRequest) throws MVCPortletSystemException