public class MockedUserInfoProvider extends Object implements AuthenticatedUserInfoProvider
MockedUserInfoProvider
is a AuthenticatedUserInfoProvider
which interprets the presented user claim as the user name of a mocked user.
Mock users needs to be configured.INSTANCE
Constructor and Description |
---|
MockedUserInfoProvider() |
Modifier and Type | Method and Description |
---|---|
UserInfo |
extract(String userName)
Extracts the
UserInfo from the user claim. |
String |
getFeatureName() |
boolean |
isActiveFeature()
Checks if the feature is activated
|
public UserInfo extract(String userName)
AuthenticatedUserInfoProvider
UserInfo
from the user claim.extract
in interface AuthenticatedUserInfoProvider
userName
- The claim of an authenticated user.UserInfo
instance representing the userpublic boolean isActiveFeature()
Feature
isActiveFeature
in interface Feature
public String getFeatureName()
getFeatureName
in interface Feature
Copyright © 2020. All rights reserved.