Top Description Fields Constructors Methods
io.undertow.security.handlers

public Class SecurityInitialHandler

extends AbstractSecurityContextAssociationHandler
Class Inheritance
Annotations
@SuppressWarnings:deprecation
Imports
io.undertow.security.api.AuthenticationMode, .SecurityContext, .SecurityContextFactory, io.undertow.security.idm.IdentityManager, io.undertow.security.impl.SecurityContextFactoryImpl, io.undertow.server.HttpHandler, .HttpServerExchange

The security handler responsible for attaching the SecurityContext to the current HttpServerExchange. This handler is called early in the processing of the incoming request, subsequently supported authentication mechanisms will be added to the context, a decision will then be made if authentication is required or optional and the associated mechanisms will be called. In addition to the HTTPExchange authentication state can also be associated with the io.undertow.server.protocol.http.HttpServerConnection and with the io.undertow.server.session.Session however this is mechanism specific so it is down to the actual mechanisms to decide if there is state that can be re-used.
Author
Darran Lofthouse

Field Summary

Modifier and TypeField and Description
private final AuthenticationMode
private final SecurityContextFactory
contextFactory

References Deprecated SecurityContextFactory is deprecated or references (maybe indirectly) at least one deprecated element.
private final IdentityManager
private final String

Constructor Summary

AccessConstructor and Description
public
SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final String programaticMechName, final SecurityContextFactory contextFactory, final HttpHandler next)
References Deprecated SecurityContextFactory is deprecated or references (maybe indirectly) at least one deprecated element.

public
SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final String programaticMechName, final HttpHandler next)

public
SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final HttpHandler next)

Method Summary

Modifier and TypeMethod and Description
public SecurityContext
Inherited from io.undertow.security.handlers.AbstractSecurityContextAssociationHandler:
handleRequest

Field Detail

authenticationModeback to summary
private final AuthenticationMode authenticationMode
contextFactoryback to summary
private final SecurityContextFactory contextFactory

References Deprecated

SecurityContextFactory is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

identityManagerback to summary
private final IdentityManager identityManager
programaticMechNameback to summary
private final String programaticMechName

Constructor Detail

SecurityInitialHandlerback to summary
public SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final String programaticMechName, final SecurityContextFactory contextFactory, final HttpHandler next)

References Deprecated

SecurityContextFactory is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

SecurityInitialHandlerback to summary
public SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final String programaticMechName, final HttpHandler next)
SecurityInitialHandlerback to summary
public SecurityInitialHandler(final AuthenticationMode authenticationMode, final IdentityManager identityManager, final HttpHandler next)

Method Detail

createSecurityContextback to summary
public SecurityContext createSecurityContext(final HttpServerExchange exchange)

Implements abstract io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.createSecurityContext.

Annotations
@Override
See Also
io.undertow.security.handlers.AbstractSecurityContextAssociationHandler#createSecurityContext