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

public Class ServletAuthenticationConstraintHandler

extends AuthenticationConstraintHandler
Class Inheritance
Imports
java.util.List, io.undertow.UndertowLogger, io.undertow.server.HttpHandler, .HttpServerExchange, io.undertow.security.handlers.AuthenticationConstraintHandler, io.undertow.servlet.api.SecurityInfo.EmptyRoleSemantic, .SingleConstraintMatch, io.undertow.servlet.handlers.ServletRequestContext

A simple handler that just sets the auth type to REQUIRED after iterating each of the SingleConstraintMatch instances and identifying if any require authentication.
Authors
Stuart Douglas, Darran Lofthouse

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected boolean
isAuthenticationRequired(final HttpServerExchange
- the HttpServerExchange for the current request to decide if authentication is required.
exchange
)

Overrides io.undertow.security.handlers.AuthenticationConstraintHandler.isAuthenticationRequired.

Evaluate the current request and indicate if authentication is required for the current request.

Inherited from io.undertow.security.handlers.AuthenticationConstraintHandler:
handleRequest

Constructor Detail

ServletAuthenticationConstraintHandlerback to summary
public ServletAuthenticationConstraintHandler(final HttpHandler next)

Method Detail

isAuthenticationRequiredback to summary
protected boolean isAuthenticationRequired(final HttpServerExchange exchange)

Overrides io.undertow.security.handlers.AuthenticationConstraintHandler.isAuthenticationRequired.

Doc from io.undertow.security.handlers.AuthenticationConstraintHandler.isAuthenticationRequired.

Evaluate the current request and indicate if authentication is required for the current request. By default this will always return true, sub-classes will override this method to provide a more specific check.

Parameters
exchange:HttpServerExchange

- the HttpServerExchange for the current request to decide if authentication is required.

Returns:boolean

true if authentication is required, false otherwise.

Annotations
@Override