Interface SecurityConfig

All Superinterfaces:
Config

public interface SecurityConfig extends Config
Server Security Configuration.
Since:
4.4
  • Method Details

    • setAuthenticationHandlers

      void setAuthenticationHandlers(List<? extends AuthenticationHandlerConfig> handlers) throws ConfigException
      Authentication handlers, in order of decreasing precedence.

      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:-

      • System Authentication Handler
        Used to specify the use of the system authentication handler configured using the system authentication store. This may be specified only once.
      • Server Authenticator
        Used to specify an authenticator implemented at the server. More than one may be specified.
      • Control Authenticator
        Used to specify an authenticator implemented by a remote client application. More than one may be specified.
      Parameters:
      handlers - definitions of each handler in precedence order
      Throws:
      ConfigException - if unable to set the property
      Since:
      5.0
    • getAuthenticationHandlers

      List<AuthenticationHandlerConfig> getAuthenticationHandlers()
      Returns:
      the authentication handlers
      Since:
      5.0