Package org.apache.felix.webconsole
Interface User
-
@ProviderType @Deprecated(since="2021-04-30") public interface User
Deprecated.The Apache Felix Webconsole is not supported in Cloud environments.Representation of a user. The user object can be used by plugins toauthorize(String)
the user.- Since:
- 3.4.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
USER_ATTRIBUTE
Deprecated.The name of the request attribute providing an object of this class
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
authorize(java.lang.String role)
Deprecated.Checks whether the user has the given role permission.java.lang.Object
getUserObject()
Deprecated.Return the user object.
-
-
-
Method Detail
-
getUserObject
java.lang.Object getUserObject()
Deprecated.Return the user object. This method might returnnull
if no web console security provider is configured and access to the console is allowed without authentication. This is the same value as the request attribute fromWebConsoleSecurityProvider2.USER_ATTRIBUTE
.- Returns:
- The user object or
null
-
authorize
boolean authorize(java.lang.String role)
Deprecated.Checks whether the user has the given role permission.- Parameters:
role
- The requested role- Returns:
true
if the user is given permission for the given role.
-
-