Class SPNEGOAutoLoginManager

  • All Implemented Interfaces:
    net.shibboleth.utilities.java.support.component.Component, net.shibboleth.utilities.java.support.component.DestructableComponent, net.shibboleth.utilities.java.support.component.InitializableComponent

    public class SPNEGOAutoLoginManager
    extends net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
    Component managing the auto-login state via cookie.
    • Field Detail

      • AUTOLOGIN_PARAMETER_NAME

        @Nonnull
        @NotEmpty
        public static final String AUTOLOGIN_PARAMETER_NAME
        Name of the SPNEGO auto-login signaling parameter.
        See Also:
        Constant Field Values
      • AUTOLOGIN_COOKIE_NAME

        @Nonnull
        @NotEmpty
        public static final String AUTOLOGIN_COOKIE_NAME
        Name of the SPNEGO auto-login cookie.
        See Also:
        Constant Field Values
      • AUTOLOGIN_COOKIE_VALUE_TRUE

        @Nonnull
        @NotEmpty
        public static final String AUTOLOGIN_COOKIE_VALUE_TRUE
        SPNEGO auto-login cookie value representing true.
        See Also:
        Constant Field Values
      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • cookieManager

        @NonnullAfterInit
        private net.shibboleth.utilities.java.support.net.CookieManager cookieManager
        Manages creation of cookies.
    • Constructor Detail

      • SPNEGOAutoLoginManager

        public SPNEGOAutoLoginManager()
    • Method Detail

      • setCookieManager

        public void setCookieManager​(@Nonnull
                                     net.shibboleth.utilities.java.support.net.CookieManager manager)
        Set the CookieManager to use.
        Parameters:
        manager - the CookieManager to use.
      • getCookieManager

        @NonnullAfterInit
        public net.shibboleth.utilities.java.support.net.CookieManager getCookieManager()
        Get the CookieManager.
        Returns:
        the CookieManager.
      • doInitialize

        protected void doInitialize()
                             throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
        Overrides:
        doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
        Throws:
        net.shibboleth.utilities.java.support.component.ComponentInitializationException
      • enable

        public void enable()
        Enable auto-login, i.e. set cookie to 'true'.
      • disable

        public void disable()
        Disable auto-login. i.e. unset cookie.
      • isEnabled

        public boolean isEnabled()
        Checks whether auto-login is enabled.
        Returns:
        true if auto-login is enabled.
      • isDisabled

        public boolean isDisabled()
        Checks whether auto-login is disabled.
        Returns:
        true if auto-login is disabled.