Class DefaultServerAuthConfig

  • All Implemented Interfaces:
    jakarta.security.auth.message.config.AuthConfig, jakarta.security.auth.message.config.ServerAuthConfig

    public class DefaultServerAuthConfig
    extends Object
    implements jakarta.security.auth.message.config.ServerAuthConfig
    This class functions as a kind of factory for ServerAuthContext instances, which are delegates for the actual ServerAuthModule (SAM) that we're after.
    Author:
    Arjan Tijms
    • Constructor Detail

      • DefaultServerAuthConfig

        public DefaultServerAuthConfig​(String layer,
                                       String appContext,
                                       CallbackHandler handler,
                                       Map<String,​String> providerProperties,
                                       jakarta.security.auth.message.module.ServerAuthModule serverAuthModule)
    • Method Detail

      • getAuthContext

        public jakarta.security.auth.message.config.ServerAuthContext getAuthContext​(String authContextID,
                                                                                     Subject serviceSubject,
                                                                                     Map properties)
                                                                              throws jakarta.security.auth.message.AuthException
        Specified by:
        getAuthContext in interface jakarta.security.auth.message.config.ServerAuthConfig
        Throws:
        jakarta.security.auth.message.AuthException
      • getMessageLayer

        public String getMessageLayer()
        Specified by:
        getMessageLayer in interface jakarta.security.auth.message.config.AuthConfig
      • getAuthContextID

        public String getAuthContextID​(jakarta.security.auth.message.MessageInfo messageInfo)
        It's not entirely clear what the difference is between the "application context identifier" (appContext) and the "authentication context identifier" (authContext). In early iterations of the specification, authContext was called "operation" and instead of the MessageInfo it was obtained by something called an "authParam".
        Specified by:
        getAuthContextID in interface jakarta.security.auth.message.config.AuthConfig
      • getAppContext

        public String getAppContext()
        Specified by:
        getAppContext in interface jakarta.security.auth.message.config.AuthConfig
      • refresh

        public void refresh()
        Specified by:
        refresh in interface jakarta.security.auth.message.config.AuthConfig
      • isProtected

        public boolean isProtected()
        Specified by:
        isProtected in interface jakarta.security.auth.message.config.AuthConfig
      • getProviderProperties

        public Map<String,​String> getProviderProperties()