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 anSecurityListener
to 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 void
authenticated(UserDetails details)
protected void
failedToAuthenticate(String username)
protected void
failedToLogIn(String username)
protected void
loggedIn(String username)
protected void
loggedOut(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:
authenticated
in classSecurityListener
-
failedToAuthenticate
protected void failedToAuthenticate(@Nonnull String username)
- Overrides:
failedToAuthenticate
in classSecurityListener
-
loggedIn
protected void loggedIn(@Nonnull String username)
- Overrides:
loggedIn
in classSecurityListener
-
failedToLogIn
protected void failedToLogIn(@Nonnull String username)
- Overrides:
failedToLogIn
in classSecurityListener
-
loggedOut
protected void loggedOut(@Nonnull String username)
- Overrides:
loggedOut
in classSecurityListener
-
-