Class AggregateAuthenticationHandler

  • All Implemented Interfaces:
    AuthenticationHandler

    public class AggregateAuthenticationHandler
    extends java.lang.Object
    implements AuthenticationHandler
    Used in conjunction with an AggregateDnResolver to authenticate the resolved DN. In particular, the resolved DN is expected to be of the form: label:DN where the label indicates the authentication handler to use. This class only invokes one authentication handler that matches the label found on the DN.
    Author:
    Middleware Services
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
        Logger for this class.
    • Constructor Detail

      • AggregateAuthenticationHandler

        public AggregateAuthenticationHandler()
        Default constructor.
      • AggregateAuthenticationHandler

        public AggregateAuthenticationHandler​(java.util.Map<java.lang.String,​AuthenticationHandler> handlers)
        Creates a new aggregate authentication handler.
        Parameters:
        handlers - authentication handlers
    • Method Detail

      • getAuthenticationHandlers

        public java.util.Map<java.lang.String,​AuthenticationHandler> getAuthenticationHandlers()
        Returns the authentication handlers to aggregate over.
        Returns:
        map of label to authentication handler
      • setAuthenticationHandlers

        public void setAuthenticationHandlers​(java.util.Map<java.lang.String,​AuthenticationHandler> handlers)
        Sets the authentication handlers to aggregate over.
        Parameters:
        handlers - to set
      • addAuthenticationHandler

        public void addAuthenticationHandler​(java.lang.String label,
                                             AuthenticationHandler handler)
        Adds an authentication handler with the supplied label.
        Parameters:
        label - of the resolver
        handler - authentication handler