public abstract class AbstractPortletCallbackHandler extends java.lang.Object implements PortletCallbackHandler
Modifier and Type | Field and Description |
---|---|
protected PortletActivityPlugIn | iActivityService
Internal object reference for MVCPortlet activity service.
|
protected PortletCredentialPlugIn | iCredentialService
Internal object reference for MVCPortlet credential service.
|
protected IdentityTokenCallback | iIdentityTokenCallback
Internal object reference for current WebSphere Commerce identity token.
|
protected java.lang.String | iIdentityTokenTimeout
Internal object reference for identity token timeout.
|
protected LTPATokenCallback | iLTPATokenCallback
Internal object reference for current LTPA token.
|
protected javax.security.auth.callback.NameCallback | iNameCallback
Internal object reference for current user name.
|
protected javax.security.auth.callback.PasswordCallback | iPasswordCallback
Internal object reference for current user password.
|
protected javax.portlet.PortletConfig | iPortletConfig
Internal object reference for current portlet configuration.
|
protected javax.portlet.PortletRequest | iPortletRequest
Internal object reference for current portlet request.
|
Constructor and Description |
---|
AbstractPortletCallbackHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object | clone()
Returns a copy of the current callback handler object.
|
javax.security.auth.callback.Callback[] | getCallbacks()
Returns all the callback objects stored in the current handler.
|
abstract void | handle(javax.security.auth.callback.Callback[] callbacks)
This is the callback method of this handler.
|
protected void | handleIdentityTokenCallback()
Prepares the IdentityTokenCallback object.
|
protected void | handleLTPATokenCallback()
Prepares the LTPATokenCallback object.
|
protected void | handleNameCallback()
Prepares the NameCallback and PasswordCallback object.
|
protected void | migrateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, LTPATokenCallback aLTPATokenCallback)
Migrates the guest IdentityTokenCallback object to the authenticated LTPATokenCallback.
|
protected void | migrateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, javax.security.auth.callback.NameCallback nameCallback, javax.security.auth.callback.PasswordCallback passwordCallback)
Migrates the guest IdentityTokenCallback object to another authenticated IdentityTokenCallback.
|
void | setCallbacks(javax.security.auth.callback.Callback[] callbacks)
Initializes the handler with the given callback objects.
|
void | setPortletConfig(javax.portlet.PortletConfig portletConfig)
Sets portlet configuration object that is associated with this callback handler.
|
void | setPortletRequest(javax.portlet.PortletRequest portletRequest)
Sets portlet request that is associated with this callback handler object.
|
protected void | updateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback)
Prepares the IdentityTokenCallback object from the given ActivityToken.
|
protected void | updateLTPATokenCallback(javax.portlet.PortletRequest portletRequest, LTPATokenCallback aLTPATokenCallback, java.lang.String aLTPATokenString)
Prepares the LTPATokenCallback object from the given LTPA token string.
|
protected void | updateNameCallback(javax.portlet.PortletRequest portletRequest, javax.security.auth.callback.NameCallback nameCallback, javax.security.auth.callback.PasswordCallback passwordCallback, IdentityTokenCallback identityTokenCallback, java.lang.String logonId, java.lang.String password)
Validates the NameCallback and PasswordCallback object to ensure that these objects do belong to the right user.
|
protected void | validateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, java.lang.String timeout)
Validates the IdentityTokenCallback object to ensure that: the token has not expired; if expired, the stored token is removed from the callback object. the token belongs to the right user; if the user has been changed, the stored token is removed from the callback object.
|
protected javax.portlet.PortletRequest iPortletRequest
protected javax.portlet.PortletConfig iPortletConfig
protected javax.security.auth.callback.NameCallback iNameCallback
protected javax.security.auth.callback.PasswordCallback iPasswordCallback
protected IdentityTokenCallback iIdentityTokenCallback
protected LTPATokenCallback iLTPATokenCallback
protected PortletCredentialPlugIn iCredentialService
protected PortletActivityPlugIn iActivityService
protected java.lang.String iIdentityTokenTimeout
public void setPortletRequest(javax.portlet.PortletRequest portletRequest)
public void setPortletConfig(javax.portlet.PortletConfig portletConfig)
public abstract void handle(javax.security.auth.callback.Callback[] callbacks) throws java.io.IOException, javax.security.auth.callback.UnsupportedCallbackException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
public javax.security.auth.callback.Callback[] getCallbacks()
public void setCallbacks(javax.security.auth.callback.Callback[] callbacks)
protected void handleLTPATokenCallback() throws javax.portlet.PortletException
protected void handleIdentityTokenCallback() throws javax.portlet.PortletException
protected void handleNameCallback() throws javax.portlet.PortletException
protected void updateLTPATokenCallback(javax.portlet.PortletRequest portletRequest, LTPATokenCallback aLTPATokenCallback, java.lang.String aLTPATokenString) throws javax.portlet.PortletException
protected void updateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback) throws javax.portlet.PortletException
protected void updateNameCallback(javax.portlet.PortletRequest portletRequest, javax.security.auth.callback.NameCallback nameCallback, javax.security.auth.callback.PasswordCallback passwordCallback, IdentityTokenCallback identityTokenCallback, java.lang.String logonId, java.lang.String password) throws javax.portlet.PortletException
protected void migrateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, LTPATokenCallback aLTPATokenCallback) throws javax.portlet.PortletException
protected void migrateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, javax.security.auth.callback.NameCallback nameCallback, javax.security.auth.callback.PasswordCallback passwordCallback) throws javax.portlet.PortletException
protected void validateIdentityTokenCallback(javax.portlet.PortletRequest portletRequest, IdentityTokenCallback identityTokenCallback, java.lang.String timeout) throws javax.portlet.PortletException