Modifier and Type | Method and Description |
---|---|
List<AuthenticationHandlerConfig> |
getAuthenticationHandlers() |
void |
setAuthenticationHandlers(List<? extends AuthenticationHandlerConfig> handlers)
Authentication handlers, in order of decreasing precedence.
|
void setAuthenticationHandlers(List<? extends AuthenticationHandlerConfig> handlers) throws ConfigException
The authentication handlers are called to authenticate new connections and changes to the principal associated with a session. Authentication handlers are configured in precedence order. Authentication succeeds if a handler returns "allow" and all higher precedence handlers (earlier in the order) return "abstain". Authentication fails if a handler returns "deny" and all higher precedence handlers return "abstain". If all authentication handlers return "abstain", the request is denied. After the outcome is known, the server might choose not to call the remaining handlers.
Handlers are defined using implementations of the subtypes of
AuthenticationHandlerConfig
. Any of the following may be used:-
handlers
- definitions of each handler in precedence orderConfigException
- if unable to set the propertyList<AuthenticationHandlerConfig> getAuthenticationHandlers()
Copyright © 2021 Push Technology Ltd. All Rights Reserved.