@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) @Extension(ordinal=2.147483647E9) public class UserSeedSecurityListener extends SecurityListener
HttpSessionContextIntegrationFilter2
and UserSeedProperty
.ExtensionPoint.LegacyInstancesAreScopedToHudson
Constructor and Description |
---|
UserSeedSecurityListener() |
Modifier and Type | Method and Description |
---|---|
protected void |
authenticated2(org.springframework.security.core.userdetails.UserDetails details)
Fired when a user was successfully authenticated using credentials.
|
protected void |
loggedIn(String username)
Fired when a user has logged in.
|
authenticated, failedToAuthenticate, failedToLogIn, fireAuthenticated, fireAuthenticated2, fireFailedToAuthenticate, fireFailedToLogIn, fireLoggedIn, fireLoggedOut, fireUserCreated, loggedOut, userCreated
protected void loggedIn(@NonNull String username)
SecurityListener
SecurityListener.authenticated2(org.springframework.security.core.userdetails.UserDetails)
.
It should be called after the SecurityContextHolder.getContext()
's authentication is set.loggedIn
in class SecurityListener
username
- the userprotected void authenticated2(@NonNull org.springframework.security.core.userdetails.UserDetails details)
SecurityListener
authenticated2
in class SecurityListener
details
- details of the newly authenticated user, such as name and groups.Copyright © 2004–2021. All rights reserved.