Package net.shibboleth.idp.authn.impl
Class ValidateCredentials.UsernamePasswordCleanupHook
java.lang.Object
net.shibboleth.idp.authn.impl.ValidateCredentials.UsernamePasswordCleanupHook
- All Implemented Interfaces:
Consumer<ProfileRequestContext>
- Enclosing class:
- ValidateCredentials
public static class ValidateCredentials.UsernamePasswordCleanupHook
extends Object
implements Consumer<ProfileRequestContext>
A default cleanup hook that removes the
UsernamePasswordContext from the tree.
It also "clears" the password field, but this won't be useful until we get off the String type.- Since:
- 4.1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CookieManagerOptional cookie manager to use.private StringUsername cookie name.private DataSealerOptional data sealer to use.private final org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ProfileRequestContext input) voidsetCookieManager(CookieManager manager) Sets optionalCookieManagerto use.voidsetCookieName(String name) Set cookie name to use for cached username.voidsetDataSealer(DataSealer sealer) Sets optionalDataSealerto use.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
cookieName
Username cookie name. -
cookieManager
Optional cookie manager to use. -
dataSealer
Optional data sealer to use.
-
-
Constructor Details
-
UsernamePasswordCleanupHook
public UsernamePasswordCleanupHook()
-
-
Method Details
-
setCookieName
Set cookie name to use for cached username.- Parameters:
name- cookie name- Since:
- 5.1.0
-
accept
- Specified by:
acceptin interfaceConsumer<ProfileRequestContext>
-