public class

JiraSeraphAuthenticator

extends DefaultAuthenticator
java.lang.Object
   ↳ com.atlassian.seraph.auth.AbstractAuthenticator
     ↳ com.atlassian.seraph.auth.DefaultAuthenticator
       ↳ com.atlassian.jira.security.login.JiraSeraphAuthenticator

Class Overview

JIRA's standard implementation of Seraph's Authenticator interface.

It uses Crowd Embedded to implement the abstract methods of Seraph's default base implementation.

Summary

[Expand]
Inherited Constants
From class com.atlassian.seraph.auth.DefaultAuthenticator
Public Constructors
JiraSeraphAuthenticator()
Protected Methods
boolean authenticate(Principal user, String password)
Principal getUser(String username)
Principal getUserFromBasicAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
Principal refreshPrincipalObtainedFromSession(HttpServletRequest httpServletRequest, Principal principal)
This is called to refresh the Principal object that has been retreived from the HTTP session.
[Expand]
Inherited Methods
From class com.atlassian.seraph.auth.DefaultAuthenticator
From class com.atlassian.seraph.auth.AbstractAuthenticator
From class java.lang.Object
From interface com.atlassian.seraph.Initable
From interface com.atlassian.seraph.auth.Authenticator

Public Constructors

public JiraSeraphAuthenticator ()

Protected Methods

protected boolean authenticate (Principal user, String password)

Throws
AuthenticatorException

protected Principal getUser (String username)

protected Principal getUserFromBasicAuthentication (HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)

protected Principal refreshPrincipalObtainedFromSession (HttpServletRequest httpServletRequest, Principal principal)

This is called to refresh the Principal object that has been retreived from the HTTP session.

By default this will called getUser(String) again to get a fresh user.

Parameters
httpServletRequest the HTTP request in play
principal the Principal in play
Returns
  • a fresh up to date principal