Package io.undertow.security.api
Interface AuthenticationMechanismContext
-
- All Superinterfaces:
SecurityContext
- All Known Implementing Classes:
SecurityContextImpl
public interface AuthenticationMechanismContext extends SecurityContext
An UndertowSecurityContext
that uses UndertowAuthenticationMechanism
instances for authentication.- Author:
- Darran Lofthouse
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addAuthenticationMechanism(AuthenticationMechanism mechanism)
Adds an authentication mechanism to this context.-
Methods inherited from interface io.undertow.security.api.SecurityContext
authenticate, authenticationComplete, authenticationFailed, getAuthenticatedAccount, getAuthenticationMechanisms, getIdentityManager, getMechanismName, isAuthenticated, isAuthenticationRequired, login, logout, registerNotificationReceiver, removeNotificationReceiver, setAuthenticationRequired
-
-
-
-
Method Detail
-
addAuthenticationMechanism
void addAuthenticationMechanism(AuthenticationMechanism mechanism)
Adds an authentication mechanism to this context. WhenSecurityContext.authenticate()
is called mechanisms will be iterated over in the order they are added, and given a chance to authenticate the user.- Specified by:
addAuthenticationMechanism
in interfaceSecurityContext
- Parameters:
mechanism
- The mechanism to add
-
-