Class SPNEGOAutoLoginManager
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.authn.spnego.impl.SPNEGOAutoLoginManager
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent
Component managing the auto-login state via cookie.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault name of the SPNEGO auto-login cookie.static final StringSPNEGO auto-login cookie value representing true.static final StringName of the SPNEGO auto-login signaling parameter.private CookieManagerManages creation of cookies.private StringAuto-login cookie name.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisable()Disable auto-login.protected voidvoidenable()Enable auto-login, i.e.Get theCookieManager.booleanChecks whether auto-login is disabled.booleanChecks whether auto-login is enabled.voidsetCookieManager(CookieManager manager) Set theCookieManagerto use.voidsetCookieName(String name) Set the auto-login cookie name.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
AUTOLOGIN_PARAMETER_NAME
Name of the SPNEGO auto-login signaling parameter.- See Also:
-
AUTOLOGIN_COOKIE_NAME
Default name of the SPNEGO auto-login cookie.- See Also:
-
AUTOLOGIN_COOKIE_VALUE_TRUE
SPNEGO auto-login cookie value representing true.- See Also:
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
cookieManager
Manages creation of cookies. -
cookieName
Auto-login cookie name.
-
-
Constructor Details
-
SPNEGOAutoLoginManager
public SPNEGOAutoLoginManager()Constructor.
-
-
Method Details
-
getCookieManager
Get theCookieManager.- Returns:
- the CookieManager.
-
setCookieName
Set the auto-login cookie name.- Parameters:
name- cookie name- Since:
- 4.2.0
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
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.