Package io.undertow.security.api
Interface AuthenticationMechanismContext
- All Superinterfaces:
SecurityContext
- All Known Implementing Classes:
SecurityContextImpl
An Undertow
SecurityContext
that uses Undertow AuthenticationMechanism
instances for authentication.- Author:
- Darran Lofthouse
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
addAuthenticationMechanism
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
-