@ProviderType
public interface User
authorize(String) the user.| Modifier and Type | Field and Description |
|---|---|
static String |
USER_ATTRIBUTE
The name of the request attribute providing an object of this class
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authorize(String role)
Checks whether the user has the given role permission.
|
Object |
getUserObject()
Return the user object.
|
static final String USER_ATTRIBUTE
Object getUserObject()
null 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 from WebConsoleSecurityProvider2.USER_ATTRIBUTE.nullboolean authorize(String role)
role - The requested roletrue if the user is given permission for the given role.Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.