Class UserProvider
java.lang.Object
dev.getelements.elements.security.UserProvider
- All Implemented Interfaces:
jakarta.inject.Provider<User>
Iterates all bound
UserAuthenticationMethods 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()voidsetSupportedAuthenticationMethods(Set<UserAuthenticationMethod> supportedAuthenticationMethods)
-
Constructor Details
-
UserProvider
public UserProvider()
-
-
Method Details
-
get
- Specified by:
getin interfacejakarta.inject.Provider<User>
-
getSupportedAuthenticationMethods
-
setSupportedAuthenticationMethods
@Inject public void setSupportedAuthenticationMethods(Set<UserAuthenticationMethod> supportedAuthenticationMethods)
-