Class SecurityContextImpl
- java.lang.Object
-
- io.undertow.security.impl.AbstractSecurityContext
-
- org.wildfly.elytron.web.undertow.server.SecurityContextImpl
-
- All Implemented Interfaces:
io.undertow.security.api.SecurityContext
public class SecurityContextImpl extends io.undertow.security.impl.AbstractSecurityContextThe Elytron specificSecurityContextimplementation.- Author:
- Darran Lofthouse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSecurityContextImpl.Builder-
Nested classes/interfaces inherited from class io.undertow.security.impl.AbstractSecurityContext
io.undertow.security.impl.AbstractSecurityContext.Node<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.wildfly.security.auth.server.SecurityDomainsecurityDomain
-
Constructor Summary
Constructors Modifier Constructor Description protectedSecurityContextImpl(SecurityContextImpl.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism mechanism)booleanauthenticate()protected voidauthenticationComplete(org.wildfly.security.auth.server.SecurityIdentity securityIdentity, String mechanism)List<io.undertow.security.api.AuthenticationMechanism>getAuthenticationMechanisms()io.undertow.security.idm.IdentityManagergetIdentityManager()booleanlogin(String username, String password)voidlogout()protected voidsetLogoutHandler(Runnable runnable)-
Methods inherited from class io.undertow.security.impl.AbstractSecurityContext
authenticationComplete, authenticationComplete, authenticationFailed, getAuthenticatedAccount, getMechanismName, isAuthenticated, isAuthenticationRequired, registerNotificationReceiver, removeNotificationReceiver, setAuthenticationRequired
-
-
-
-
Constructor Detail
-
SecurityContextImpl
protected SecurityContextImpl(SecurityContextImpl.Builder builder)
-
-
Method Detail
-
authenticate
public boolean authenticate()
- See Also:
SecurityContext.authenticate()
-
setLogoutHandler
protected void setLogoutHandler(Runnable runnable)
-
login
public boolean login(String username, String password)
- See Also:
SecurityContext.login(java.lang.String, java.lang.String)
-
logout
public void logout()
- Specified by:
logoutin interfaceio.undertow.security.api.SecurityContext- Overrides:
logoutin classio.undertow.security.impl.AbstractSecurityContext
-
authenticationComplete
protected void authenticationComplete(org.wildfly.security.auth.server.SecurityIdentity securityIdentity, String mechanism)
-
addAuthenticationMechanism
public void addAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism mechanism)
- See Also:
SecurityContext.addAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism)
-
getAuthenticationMechanisms
public List<io.undertow.security.api.AuthenticationMechanism> getAuthenticationMechanisms()
- See Also:
SecurityContext.getAuthenticationMechanisms()
-
getIdentityManager
public io.undertow.security.idm.IdentityManager getIdentityManager()
- See Also:
SecurityContext.getIdentityManager()
-
-