Class SecurityContextImpl

  • All Implemented Interfaces:
    io.undertow.security.api.SecurityContext

    public class SecurityContextImpl
    extends io.undertow.security.impl.AbstractSecurityContext
    The Elytron specific SecurityContext implementation.
    Author:
    Darran Lofthouse
    • Field Detail

      • securityDomain

        protected final org.wildfly.security.auth.server.SecurityDomain securityDomain
    • 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:
        logout in interface io.undertow.security.api.SecurityContext
        Overrides:
        logout in class io.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()