com.atlassian.crowd.openid.client.action
Class Login

java.lang.Object
  extended by com.opensymphony.xwork.ActionSupport
      extended by com.atlassian.crowd.openid.client.action.BaseAction
          extended by com.atlassian.crowd.openid.client.action.Login
All Implemented Interfaces:
com.opensymphony.xwork.Action, com.opensymphony.xwork.LocaleProvider, com.opensymphony.xwork.TextProvider, com.opensymphony.xwork.Validateable, com.opensymphony.xwork.ValidationAware, com.uwyn.rife.continuations.ContinuableObject, java.io.Serializable, java.lang.Cloneable

public class Login
extends BaseAction

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.atlassian.crowd.openid.client.action.BaseAction
AUTHENTICATED_PRINCIPAL_SESSION_KEY
 
Fields inherited from class com.opensymphony.xwork.ActionSupport
LOG
 
Fields inherited from interface com.opensymphony.xwork.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
 
Constructor Summary
Login()
           
 
Method Summary
 java.lang.String doDefault()
          Show the login screen.
 java.lang.String doLogin()
          Request authentication to the OpenID server using the provided OpenID identifier.
 java.lang.String doLoginResponse()
          When an authentication response is recieved by the OpenID client servlet, this method is called.
 java.lang.String execute()
           
 java.lang.String getOpenid_identifier()
           
 java.util.List getOptionalAttribs()
           
 java.util.List getRequiredAttribs()
           
 boolean isCheckImmediate()
           
 boolean isDummyMode()
           
 void setCheckImmediate(boolean checkImmediate)
           
 void setDummyMode(boolean dummyMode)
           
 void setOpenid_identifier(java.lang.String openid_identifier)
           
 void setOptionalAttribs(java.util.List optionalAttribs)
           
 void setRequiredAttribs(java.util.List requiredAttribs)
           
 
Methods inherited from class com.atlassian.crowd.openid.client.action.BaseAction
containsActionMessages, containsErrorMessages, getHttpSession, getOpenIDPrincipal, getPrincipalName, isAuthenticated, setOpenIDPrincipal
 
Methods inherited from class com.opensymphony.xwork.ActionSupport
addActionError, addActionMessage, addFieldError, clearErrorsAndMessages, clone, doInput, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, pause, setActionErrors, setActionMessages, setFieldErrors, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Login

public Login()
Method Detail

execute

public java.lang.String execute()
                         throws java.lang.Exception
Specified by:
execute in interface com.opensymphony.xwork.Action
Overrides:
execute in class com.opensymphony.xwork.ActionSupport
Throws:
java.lang.Exception

doDefault

public java.lang.String doDefault()
                           throws java.lang.Exception
Show the login screen. If the user is already logged in, take them to the secure section of the site.

Overrides:
doDefault in class com.opensymphony.xwork.ActionSupport
Returns:
"input"/"success"
Throws:
java.lang.Exception

doLogin

public java.lang.String doLogin()
                         throws java.lang.Exception
Request authentication to the OpenID server using the provided OpenID identifier. Dispatch to the OpenID client servlet to make the actual OpenID request. If there is no OpenID identifier supplied, perform the default method.

Returns:
"openid"/doDefault()
Throws:
java.lang.Exception

doLoginResponse

public java.lang.String doLoginResponse()
                                 throws java.lang.Exception
When an authentication response is recieved by the OpenID client servlet, this method is called. The response is examined and the user is either redirected to their requesting URL or the default secure area. If there are errors, display the login screen.

Returns:
"success" (default secure area)/ "none" (login requesting page) / "input" (via doDefault())
Throws:
java.lang.Exception

getOpenid_identifier

public java.lang.String getOpenid_identifier()

setOpenid_identifier

public void setOpenid_identifier(java.lang.String openid_identifier)

getRequiredAttribs

public java.util.List getRequiredAttribs()

setRequiredAttribs

public void setRequiredAttribs(java.util.List requiredAttribs)

getOptionalAttribs

public java.util.List getOptionalAttribs()

setOptionalAttribs

public void setOptionalAttribs(java.util.List optionalAttribs)

isCheckImmediate

public boolean isCheckImmediate()

setCheckImmediate

public void setCheckImmediate(boolean checkImmediate)

isDummyMode

public boolean isDummyMode()

setDummyMode

public void setDummyMode(boolean dummyMode)


Copyright © 2010 Atlassian. All Rights Reserved.