Package com.atlassian.sal.api.auth
Interface AuthenticationController
public interface AuthenticationController
Allows the host application to communicate about when authentication should be performed
and users allowed to login.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck whether the given principal can log into the application for the current request.booleanshouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request) Check whether or not authentication should be tried.
-
Method Details
-
shouldAttemptAuthentication
boolean shouldAttemptAuthentication(javax.servlet.http.HttpServletRequest request) Check whether or not authentication should be tried. Typically this will returntrueif the current principal is not already authenticated.- Parameters:
request- the currentHttpServletRequest- Returns:
trueif authentication should be tried,falseotherwise.
-
canLogin
Check whether the given principal can log into the application for the current request.- Parameters:
principal- the identified principalrequest- the currentHttpServletRequest- Returns:
trueif the principal is allowed to login for the given request,falseotherwise.
-