public class JAASUserProvider extends Object implements UserProvider
#isFeatureAdmin(String) allows to change the default behavior.| Constructor and Description |
|---|
JAASUserProvider() |
| Modifier and Type | Method and Description |
|---|---|
FeatureUser |
getCurrentUser()
Return a
FeatureUser instance representing the current user. |
protected boolean |
isFeatureAdmin(Principal principal)
Checks if the supplied user is a feature admin.
|
public FeatureUser getCurrentUser()
UserProviderFeatureUser instance representing the current user. This method should return null if the
implementation is unable to determine the user.getCurrentUser in interface UserProvidernullprotected boolean isFeatureAdmin(Principal principal)
false. Users can
overwrite this method to implement a different behavior.principal - The principaltrue for feature admins, false otherwiseCopyright © 2018. All Rights Reserved.