com.atlassian.crowd.model.authentication
Class UserAuthenticationContext

java.lang.Object
  extended by com.atlassian.crowd.model.authentication.AuthenticationContext
      extended by com.atlassian.crowd.model.authentication.UserAuthenticationContext
All Implemented Interfaces:
Serializable

public class UserAuthenticationContext
extends AuthenticationContext
implements Serializable

The UserAuthenticationContext is used to authenticate users.

See Also:
Serialized Form

Constructor Summary
UserAuthenticationContext()
           
UserAuthenticationContext(String name, com.atlassian.crowd.embedded.api.PasswordCredential credential, ValidationFactor[] validationFactors, String application)
           
 
Method Summary
 boolean equals(Object o)
           
 String getApplication()
          Gets the application name the authentication request is for.
 int hashCode()
           
 void setApplication(String application)
          Sets the application name the authentication request is for.
 String toString()
           
 UserAuthenticationContext withName(String name)
           
 
Methods inherited from class com.atlassian.crowd.model.authentication.AuthenticationContext
getCredential, getName, getValidationFactors, setCredential, setName, setValidationFactors
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserAuthenticationContext

public UserAuthenticationContext()

UserAuthenticationContext

public UserAuthenticationContext(String name,
                                 com.atlassian.crowd.embedded.api.PasswordCredential credential,
                                 ValidationFactor[] validationFactors,
                                 String application)
Method Detail

getApplication

public String getApplication()
Gets the application name the authentication request is for.

Returns:
The application name.

setApplication

public void setApplication(String application)
Sets the application name the authentication request is for.

Parameters:
application - The application name.

equals

public boolean equals(Object o)
Overrides:
equals in class AuthenticationContext

hashCode

public int hashCode()
Overrides:
hashCode in class AuthenticationContext

toString

public String toString()
Overrides:
toString in class AuthenticationContext

withName

public UserAuthenticationContext withName(String name)
Returns:
a new UserAuthenticationContext that is a copy of this one with the username replaced with the provided value


Copyright © 2013 Atlassian. All Rights Reserved.