Package net.officefloor.web.spi.security
Interface AuthenticationContext<AC extends java.io.Serializable,C>
-
public interface AuthenticationContext<AC extends java.io.Serializable,C>
Context for authentication.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
authenticate(C credentials, AuthenticateRequest authenticateRequest)
Undertakes authentication.java.lang.String
getQualifier()
Obtains the qualifier for theHttpSecurity
backing thisAuthenticationContext
.void
logout(LogoutRequest logoutRequest)
Undertakes logout.void
register(AccessControlListener<? super AC> accessControlListener)
Registers anAccessControlListener
.<R,T extends java.lang.Throwable>
Rrun(ProcessSafeOperation<R,T> operation)
Undertakes aProcessSafeOperation
.
-
-
-
Method Detail
-
getQualifier
java.lang.String getQualifier()
Obtains the qualifier for theHttpSecurity
backing thisAuthenticationContext
.- Returns:
- Qualifier for the
HttpSecurity
backing thisAuthenticationContext
.
-
register
void register(AccessControlListener<? super AC> accessControlListener)
Registers anAccessControlListener
.- Parameters:
accessControlListener
-AccessControlListener
.
-
authenticate
void authenticate(C credentials, AuthenticateRequest authenticateRequest)
Undertakes authentication.- Parameters:
credentials
- Credentials (if available). May benull
.authenticateRequest
- OptionalAuthenticateRequest
. May benull
.
-
logout
void logout(LogoutRequest logoutRequest)
Undertakes logout.- Parameters:
logoutRequest
- OptionalLogoutRequest
. May benull
.
-
run
<R,T extends java.lang.Throwable> R run(ProcessSafeOperation<R,T> operation) throws T extends java.lang.Throwable
Undertakes aProcessSafeOperation
.- Type Parameters:
R
- Return type.T
- PossibleException
type.- Parameters:
operation
-ProcessSafeOperation
.- Returns:
- Return value.
- Throws:
T
- PossibleThrowable
.T extends java.lang.Throwable
-
-