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.AbstractSecurityContext
The Elytron specific SecurityContext implementation.
Author:
Darran Lofthouse
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     

    Nested classes/interfaces inherited from class io.undertow.security.impl.AbstractSecurityContext

    io.undertow.security.impl.AbstractSecurityContext.Node<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final org.wildfly.security.auth.server.SecurityDomain
     

    Fields inherited from class io.undertow.security.impl.AbstractSecurityContext

    exchange
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addAuthenticationMechanism(io.undertow.security.api.AuthenticationMechanism mechanism)
     
    boolean
     
    protected void
    authenticationComplete(org.wildfly.security.auth.server.SecurityIdentity securityIdentity, String mechanism)
     
    List<io.undertow.security.api.AuthenticationMechanism>
     
    io.undertow.security.idm.IdentityManager
     
    boolean
    login(String username, String password)
     
    void
     
    protected void
     

    Methods inherited from class io.undertow.security.impl.AbstractSecurityContext

    authenticationComplete, authenticationComplete, authenticationFailed, getAuthenticatedAccount, getMechanismName, isAuthenticated, isAuthenticationRequired, registerNotificationReceiver, removeNotificationReceiver, setAuthenticationRequired

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • securityDomain

      protected final org.wildfly.security.auth.server.SecurityDomain securityDomain
  • Constructor Details

  • Method Details

    • 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()