Skip navigation links
com.atlassian.crowd.integration.http

Interface HttpAuthenticator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void authenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username, String password)
      Authenticate a remote user using SSO.
      void authenticateWithoutValidatingPassword(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username)
      Authenticate a remote user using SSO, without validating their password.
      SOAPPrincipal getPrincipal(javax.servlet.http.HttpServletRequest request)
      Attempts to retrieve the principal from the request.
      UserAuthenticationContext getPrincipalAuthenticationContext(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String username, String password)
      Generate a PrincipalAuthenticationContext object containing the provided username and password, and validation factors from the the request.
      SecurityServerClient getSecurityServerClient()
      Retrieve the underlying SecurityServerClient used to communicate with the Crowd Security Server.
      SoapClientProperties getSoapClientProperties()
      Retrieve the underlying client properties used to communicate with the Crowd Security Server.
      String getToken(javax.servlet.http.HttpServletRequest request)
      Retrieve the Crowd authentication token from the request either via: a request attribute (not request parameter), OR a cookie on the request
      ValidationFactor[] getValidationFactors(javax.servlet.http.HttpServletRequest request)
      Retrieves validation factors from the request: Remote Address: the source IP address of the HTTP request. Original Address: the X-Forwarded-For HTTP header (if present and distinct from the Remote Address).
      boolean isAuthenticated(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Tests whether a request is authenticated via SSO.
      void logoff(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Log off the SSO authenticated user.
      void setPrincipalToken(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String token)
      Sets the underlying principal token on: the request: as an attribute, so the user is authenticated for the span of the request. the response: as a cookie, so the user is authenticated for subsequent requests.
      void verifyAuthentication(String username, String password)
      Authenticate a remote principal without using SSO.
      String verifyAuthentication(String username, String password, ValidationFactor[] validationFactors)
      Verifies the authentication of a principal's username/password, given a set of validation factors.

Copyright © 2016 Atlassian. All Rights Reserved.