Class AbstractLoginModule

  • All Implemented Interfaces:
    LoginModule

    @ProviderType
    public abstract class AbstractLoginModule
    extends Object
    implements LoginModule
    Abstract implementation of the LoginModule interface that can act as base class for login modules that aim to authenticate subjects against information stored in the content repository.

    LoginModule Methods

    This base class provides a simple implementation for the following methods of the LoginModule interface:

    • Initialize: Initialization of this abstract module sets the following protected instance fields:
      • subject: The subject to be authenticated,
      • callbackHandler: The callback handler passed to the login module,
      • shareState: The map used to share state information with other login modules,
      • options: The configuration options of this login module as specified in the Configuration.
    • Logout: If the authenticated subject is not empty this logout implementation attempts to clear both principals and public credentials and returns true.
    • Abort: Clears the state of this login module by setting all private instance variables created in phase 1 or 2 to null. Subclasses are in charge of releasing their own state information by either overriding clearState().

    Utility Methods

    The following methods are provided in addition:

    • Field Detail

      • SHARED_KEY_CREDENTIALS

        public static final String SHARED_KEY_CREDENTIALS
        Key of the sharedState entry referring to validated Credentials that is shared between multiple login modules.
        See Also:
        Constant Field Values
      • SHARED_KEY_LOGIN_NAME

        public static final String SHARED_KEY_LOGIN_NAME
        Key of the sharedState entry referring to a valid login ID that is shared between multiple login modules.
        See Also:
        Constant Field Values
      • SHARED_KEY_ATTRIBUTES

        public static final String SHARED_KEY_ATTRIBUTES
        Key of the sharedState entry referring to public attributes that are shared between multiple login modules.
        See Also:
        Constant Field Values
      • SHARED_KEY_PRE_AUTH_LOGIN

        public static final String SHARED_KEY_PRE_AUTH_LOGIN
        Key of the sharedState entry referring to pre authenticated login information that is shared between multiple login modules.
    • Constructor Detail

      • AbstractLoginModule

        public AbstractLoginModule()