public interface RequestUserProvider extends Feature
RequestUserProvider
is capable to extract a RequestUser
from a user claim string.Modifier and Type | Field and Description |
---|---|
static RequestUserProvider |
INSTANCE
Gives access to the active
RequestUserProvider |
Modifier and Type | Method and Description |
---|---|
RequestUser |
extract(String authenticatedUserClaim)
Extracts the
RequestUser from the user claim. |
getFeatureName, isActiveFeature
static final RequestUserProvider INSTANCE
RequestUserProvider
RequestUser extract(String authenticatedUserClaim) throws IllegalArgumentException
RequestUser
from the user claim.authenticatedUserClaim
- The claim of an authenticated user.RequestUser
instance representing the userIllegalArgumentException
- In case the claim could not be parsed correctlyCopyright © 2020. All rights reserved.