public interface SimpleIdentity
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
READ_AUTHORIZATION |
static java.lang.String |
WRITE_AUTHORIZATION |
Modifier and Type | Method and Description |
---|---|
boolean |
canRead(java.lang.Object resource,
java.lang.String resourceName)
Checks if the identity has read access on the indicated resource.
|
boolean |
canWrite(java.lang.Object resource,
java.lang.String resourceName)
Checks if the identity has read access on the indicated resource.
|
java.lang.String |
getAttribute(java.lang.String name) |
java.util.List |
getAttributeNames() |
java.lang.String |
getFullName() |
java.lang.String |
getID()
Return the identifier of this user
|
java.lang.String |
getName() |
java.util.List<java.lang.String> |
getRoles() |
boolean |
isAuthenticated() |
boolean |
isAuthorized(java.lang.String actionName)
Checks is the identity is authorized to perform the action.
|
boolean |
isAuthorized(java.lang.String actionName,
java.lang.Object resource,
java.lang.String resourceName)
Checks is the identity is authorized to perform the action on the
indicated resource.
|
static final java.lang.String READ_AUTHORIZATION
static final java.lang.String WRITE_AUTHORIZATION
boolean isAuthenticated()
java.lang.String getID()
java.lang.String getName()
java.lang.String getFullName()
java.util.List getAttributeNames()
java.lang.String getAttribute(java.lang.String name)
boolean isAuthorized(java.lang.String actionName)
actionName
- boolean isAuthorized(java.lang.String actionName, java.lang.Object resource, java.lang.String resourceName)
actionName
- resource
- resourceName
- boolean canRead(java.lang.Object resource, java.lang.String resourceName)
resource
- resourceName
- boolean canWrite(java.lang.Object resource, java.lang.String resourceName)
resource
- resourceName
- java.util.List<java.lang.String> getRoles()