public interface Permission extends Serializable
Authentication
object.
Could be for example a role associated to a user principal.
Explicit equals(Object)
and hashCode()
methods implementation is expected for a proper
authorization control behaviour.
Authorizer
Modifier and Type | Method and Description |
---|---|
static Permission |
create(String permission)
Create a default Permission implementation, using given
permission String to represent permission
authority. |
boolean |
equals(Object permission) |
Optional<String> |
getPermission()
If this permission can be represented as a String retaining a sufficient precision to be relied upon for a access
control decisions, this method should return such string.
|
int |
hashCode() |
Optional<String> getPermission()
static Permission create(String permission)
permission
String to represent permission
authority.permission
- String representation of the permission. Must be not null
.Copyright © 2018 The Holon Platform. All rights reserved.