Class AuthenticationModuleDefinition


  • public class AuthenticationModuleDefinition
    extends Object
    A definition for a single ServerAuthModule.
    Author:
    Darran Lofthouse
    • Field Detail

      • serverAuthModuleFactory

        private final Supplier<javax.security.auth.message.module.ServerAuthModule> serverAuthModuleFactory
      • flag

        private final Flag flag
      • options

        private final Map options
    • Constructor Detail

      • AuthenticationModuleDefinition

        public AuthenticationModuleDefinition​(Supplier<javax.security.auth.message.module.ServerAuthModule> serverAuthModuleFactory,
                                              Flag flag,
                                              Map options)
        Construct a new instance of a module definition.
        Parameters:
        serverAuthModuleFactory - the factory to create an instance of the ServerAuthModule.
        flag - the flag to indicate how this module will be handled.
        options - configuration options to pass into the module during initialisation.
    • Method Detail

      • getServerAuthModuleFactory

        Supplier<javax.security.auth.message.module.ServerAuthModule> getServerAuthModuleFactory()
        Get the factory to create an instance of the ServerAuthModule.
        Returns:
        the factory to create an instance of the ServerAuthModule.
      • getFlag

        Flag getFlag()
        Get the Flag controlling the handling of the module.
        Returns:
        the Flag controlling the handling of the module.
      • getOptions

        Map getOptions()
        Get the module options to be passed into the module during initialisation.
        Returns:
        the module options to be passed into the module during initialisation.