Class DatadogSecurityListener
- java.lang.Object
-
- jenkins.security.SecurityListener
-
- org.datadog.jenkins.plugins.datadog.listeners.DatadogSecurityListener
-
- All Implemented Interfaces:
ExtensionPoint
@Extension public class DatadogSecurityListener extends SecurityListener
This class registers anSecurityListenerto trigger events and calculate metrics: - When an user authenticates, theauthenticated(UserDetails)method will be invoked. - When an user fails to authenticate, thefailedToAuthenticate(String)method will be invoked. - When an user logout, theloggedOut(String)method will be invoked.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DatadogSecurityListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidauthenticated(UserDetails details)protected voidfailedToAuthenticate(String username)protected voidfailedToLogIn(String username)protected voidloggedIn(String username)protected voidloggedOut(String username)-
Methods inherited from class jenkins.security.SecurityListener
authenticated2, fireAuthenticated, fireAuthenticated2, fireFailedToAuthenticate, fireFailedToLogIn, fireLoggedIn, fireLoggedOut, fireUserCreated, userCreated
-
-
-
-
Method Detail
-
authenticated
protected void authenticated(@Nonnull UserDetails details)- Overrides:
authenticatedin classSecurityListener
-
failedToAuthenticate
protected void failedToAuthenticate(@Nonnull String username)- Overrides:
failedToAuthenticatein classSecurityListener
-
loggedIn
protected void loggedIn(@Nonnull String username)- Overrides:
loggedInin classSecurityListener
-
failedToLogIn
protected void failedToLogIn(@Nonnull String username)- Overrides:
failedToLogInin classSecurityListener
-
loggedOut
protected void loggedOut(@Nonnull String username)- Overrides:
loggedOutin classSecurityListener
-
-