Class SimpleServerAuthConfig

    • Constructor Detail

      • SimpleServerAuthConfig

        public SimpleServerAuthConfig​(java.lang.String layer,
                                      java.lang.String appContext,
                                      javax.security.auth.callback.CallbackHandler handler,
                                      java.util.Map<java.lang.String,​java.lang.String> properties)
        Creates a new SimpleServerAuthConfig.
        Parameters:
        layer - Message layer
        appContext - Application context
        handler - Callback handler
        properties - Configuration properties
    • Method Detail

      • getAuthContextID

        public java.lang.String getAuthContextID​(MessageInfo messageInfo)

        Returns the MessageInfo's string representation as the auth context ID.

        Specified by:
        getAuthContextID in interface AuthConfig
      • refresh

        public void refresh()

        Clears the cached ServerAuthConfig so it will be recreated on next use.

        Specified by:
        refresh in interface AuthConfig
      • isProtected

        public boolean isProtected()

        This implementation always returns false.

        Specified by:
        isProtected in interface AuthConfig
      • getAuthContext

        public ServerAuthContext getAuthContext​(java.lang.String authContextID,
                                                javax.security.auth.Subject serviceSubject,
                                                java.util.Map properties)
                                         throws AuthException

        Loads ServerAuthModule instances from properties keyed with org.apache.catalina.authenticator.jaspic.ServerAuthModule.N where N is 1-based index. The returned context is cached and reused for subsequent calls.

        Specified by:
        getAuthContext in interface ServerAuthConfig
        Throws:
        AuthException
      • createServerAuthContext

        protected ServerAuthContext createServerAuthContext​(java.util.List<ServerAuthModule> modules)
        Creates the ServerAuthContext. Can be overridden by subclasses to provide a custom implementation.
        Parameters:
        modules - List of ServerAuthModule instances
        Returns:
        The ServerAuthContext instance