Interface User
- All Known Subinterfaces:
User
@ProviderType
public interface User
Representation of a user.
The user object can be used by plugins to
authorize(String) the user.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the request attribute providing an object of this class -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks whether the user has the given role permission.Return the user object.
-
Field Details
-
USER_ATTRIBUTE
The name of the request attribute providing an object of this class
-
-
Method Details
-
getUserObject
Object getUserObject()Return the user object. This method might returnnullif no web console security provider is configured and access to the console is allowed without authentication.- Returns:
- The user object or
null
-
authorize
Checks whether the user has the given role permission.- Parameters:
role- The requested role- Returns:
trueif the user is given permission for the given role.
-