Package io.sentry.spring
Class SpringSecuritySentryUserProvider
- java.lang.Object
-
- io.sentry.spring.SpringSecuritySentryUserProvider
-
- All Implemented Interfaces:
SentryUserProvider
public final class SpringSecuritySentryUserProvider extends java.lang.Object implements SentryUserProvider
Resolves user information from Spring SecurityAuthentication
obtained viaSecurityContextHolder
.
-
-
Constructor Summary
Constructors Constructor Description SpringSecuritySentryUserProvider(@NotNull io.sentry.SentryOptions options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable io.sentry.protocol.User
provideUser()
-
-
-
Method Detail
-
provideUser
@Nullable public @Nullable io.sentry.protocol.User provideUser()
- Specified by:
provideUser
in interfaceSentryUserProvider
-
-