com.atlassian.crowd.model.authentication
Class UserAuthenticationContext
java.lang.Object
com.atlassian.crowd.model.authentication.AuthenticationContext
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
UserAuthenticationContext
public UserAuthenticationContext()
UserAuthenticationContext
public UserAuthenticationContext(String name,
com.atlassian.crowd.embedded.api.PasswordCredential credential,
ValidationFactor[] validationFactors,
String application)
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.