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:
  • Constructor Details

    • UserAuthenticationContext

      public UserAuthenticationContext()
    • UserAuthenticationContext

      public UserAuthenticationContext(String name, @Nullable PasswordCredential credential, ValidationFactor[] validationFactors, String application)
  • Method Details

    • 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.
    • isLocalCrowdWebAppAuthentication

      public boolean isLocalCrowdWebAppAuthentication()
      Returns:
      true, if it's Crowd itself authenticating a user in `crowd` app. False, if it's an external client (i.e. REST API client).
    • setLocalCrowdWebAppAuthentication

      public void setLocalCrowdWebAppAuthentication(boolean localCrowdWebAppAuthentication)
    • 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