Class UserProvider
java.lang.Object
dev.getelements.elements.security.UserProvider
- All Implemented Interfaces:
jakarta.inject.Provider<User>
Iterates all bound
UserAuthenticationMethod
s currently available and returns the
User
instance determined by a combindation of headers or other authentication methods.
If no suitable authentication method is found, then this will resort to
UserAuthenticationMethod.UNPRIVILEGED
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
void
setSupportedAuthenticationMethods
(Set<UserAuthenticationMethod> supportedAuthenticationMethods)
-
Constructor Details
-
UserProvider
public UserProvider()
-
-
Method Details
-
get
- Specified by:
get
in interfacejakarta.inject.Provider<User>
-
getSupportedAuthenticationMethods
-
setSupportedAuthenticationMethods
@Inject public void setSupportedAuthenticationMethods(Set<UserAuthenticationMethod> supportedAuthenticationMethods)
-