Class ServletAuthenticationConstraintHandler

    • Constructor Detail

      • ServletAuthenticationConstraintHandler

        public ServletAuthenticationConstraintHandler​(HttpHandler next)
    • Method Detail

      • isAuthenticationRequired

        protected boolean isAuthenticationRequired​(HttpServerExchange exchange)
        Description copied from class: AuthenticationConstraintHandler
        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.
        Overrides:
        isAuthenticationRequired in class AuthenticationConstraintHandler
        Parameters:
        exchange - - the HttpServerExchange for the current request to decide if authentication is required.
        Returns:
        true if authentication is required, false otherwise.