public class SeraphAuthenticationController extends Object implements AuthenticationController
AuthenticationController to integrate with Atlassian Seraph.| Constructor and Description |
|---|
SeraphAuthenticationController() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLogin(Principal principal,
javax.servlet.http.HttpServletRequest request)
Checks the
RoleMapper on whether or not the principal can login. |
boolean |
shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
Checks the request attibutes for the
BaseLoginFilter.OS_AUTHSTATUS_KEY. |
public SeraphAuthenticationController()
IllegalArgumentException - if the roleMapper is null.public boolean canLogin(Principal principal, javax.servlet.http.HttpServletRequest request)
RoleMapper on whether or not the principal can login.canLogin in interface AuthenticationControllerprincipal - the identified principalrequest - the current HttpServletRequesttrue if the principal is allowed to login for the given request, false
otherwise.AuthenticationController.canLogin(Principal, HttpServletRequest)public boolean shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request)
BaseLoginFilter.OS_AUTHSTATUS_KEY. Will return true if
the key is not present.shouldAttemptAuthentication in interface AuthenticationControllerrequest - the current HttpServletRequesttrue if authentication should be tried, false otherwise.Copyright © 2015 Atlassian. All rights reserved.