com.atlassian.security.auth.trustedapps.filter
Interface AuthenticationController

All Known Implementing Classes:
SeraphAuthenticationController

public interface AuthenticationController

Allows the underlying framework to communicate Trusted Apps authentication mechanim details


Method Summary
 boolean canLogin(java.security.Principal principal, javax.servlet.http.HttpServletRequest request)
          Check whether the given principal can log into the application for the current request.
 boolean shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
          Check whether or not authentication via Trusted Apps should be tried.
 

Method Detail

shouldAttemptAuthentication

public boolean shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
Check whether or not authentication via Trusted Apps should be tried. Tyipcally this will return true if the current principal is not already authenticated.

Parameters:
request - the current HttpServletRequest
Returns:
true if Trusted Apps authentication should be tried, false otherwise.

canLogin

public boolean canLogin(java.security.Principal principal,
                        javax.servlet.http.HttpServletRequest request)
Check whether the given principal can log into the application for the current request.

Parameters:
principal - the identified principal
request - the current HttpServletRequest
Returns:
true if the principal is allowed to login for the given request, false otherwise.


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.