public interface Identity
Represents a security identity, which can be a person or non-person entity that was previously authenticated.
An Identity plays an important role during the evaluation of policies as they represent the entity to which one or more permissions
should be granted or not, providing additional information and attributes that can be relevant to the different
access control methods involved during the evaluation of policies.
| Modifier and Type | Method and Description |
|---|---|
Attributes |
getAttributes()
Returns the attributes or claims associated with this identity.
|
String |
getId()
Returns the unique identifier of this identity.
|
default boolean |
hasRole(String roleName)
Indicates if this identity is granted with a role with the given
roleName. |
String getId()
Attributes getAttributes()
default boolean hasRole(String roleName)
roleName.roleName - the name of the roleCopyright © 2016 JBoss by Red Hat. All rights reserved.