Class JaspiAuthConfigProvider

  • All Implemented Interfaces:
    javax.security.auth.message.config.AuthConfigProvider

    public class JaspiAuthConfigProvider
    extends java.lang.Object
    implements javax.security.auth.message.config.AuthConfigProvider

    A Jetty implementation of the AuthConfigProvider to allow registration of a ServerAuthModule directly without having to write a custom AuthConfigProvider.

    If this is being constructed by an AuthConfigFactory after being passed in as a className, then you will need to provide the property ServerAuthModule containing the fully qualified name of the ServerAuthModule class you wish to use.

    • Constructor Summary

      Constructors 
      Constructor Description
      JaspiAuthConfigProvider​(java.lang.String className)  
      JaspiAuthConfigProvider​(java.lang.String className, java.util.Map properties)  
      JaspiAuthConfigProvider​(java.util.Map properties, javax.security.auth.message.config.AuthConfigFactory factory)
      Constructor with signature and implementation that's required by API.
      JaspiAuthConfigProvider​(javax.security.auth.message.module.ServerAuthModule serverAuthModule)  
      JaspiAuthConfigProvider​(javax.security.auth.message.module.ServerAuthModule serverAuthModule, java.util.Map properties)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.security.auth.message.config.ClientAuthConfig getClientAuthConfig​(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler)  
      javax.security.auth.message.config.ServerAuthConfig getServerAuthConfig​(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler)  
      void refresh()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JaspiAuthConfigProvider

        public JaspiAuthConfigProvider​(java.util.Map properties,
                                       javax.security.auth.message.config.AuthConfigFactory factory)

        Constructor with signature and implementation that's required by API.

        The property map must contain the ServerAuthModule property containing the fully qualified name of the ServerAuthModule class you wish to use. If this constructor is being used for self-registration an optional property of appContext can be used specify the appContext value to register the provider.

        Parameters:
        properties - A Map of initialization properties.
        factory - The AuthConfigFactory to register on.
      • JaspiAuthConfigProvider

        public JaspiAuthConfigProvider​(java.lang.String className)
        Parameters:
        className - The fully qualified name of a ServerAuthModule class.
      • JaspiAuthConfigProvider

        public JaspiAuthConfigProvider​(java.lang.String className,
                                       java.util.Map properties)
        Parameters:
        className - The fully qualified name of a ServerAuthModule class.
        properties - A Map of initialization properties.
      • JaspiAuthConfigProvider

        public JaspiAuthConfigProvider​(javax.security.auth.message.module.ServerAuthModule serverAuthModule)
        Parameters:
        serverAuthModule - The instance of ServerAuthModule to use.
      • JaspiAuthConfigProvider

        public JaspiAuthConfigProvider​(javax.security.auth.message.module.ServerAuthModule serverAuthModule,
                                       java.util.Map properties)
        Parameters:
        serverAuthModule - The instance of ServerAuthModule to use.
        properties - A Map of initialization properties.
    • Method Detail

      • getClientAuthConfig

        public javax.security.auth.message.config.ClientAuthConfig getClientAuthConfig​(java.lang.String layer,
                                                                                       java.lang.String appContext,
                                                                                       javax.security.auth.callback.CallbackHandler handler)
        Specified by:
        getClientAuthConfig in interface javax.security.auth.message.config.AuthConfigProvider
      • getServerAuthConfig

        public javax.security.auth.message.config.ServerAuthConfig getServerAuthConfig​(java.lang.String layer,
                                                                                       java.lang.String appContext,
                                                                                       javax.security.auth.callback.CallbackHandler handler)
        Specified by:
        getServerAuthConfig in interface javax.security.auth.message.config.AuthConfigProvider
      • refresh

        public void refresh()
        Specified by:
        refresh in interface javax.security.auth.message.config.AuthConfigProvider