public interface Role extends Serializable
User
for the purpose of access control.
The default implementation of this role in Errai is RoleImpl
, but a different
implementation may be used so long as:
Portable
.
Object.equals(Object)
method (used to compare roles between
User
and a secured resource).
Object.hashCode()
method so that equal roles have the same hash.
(This is important if you use the default User
implementation, which stores roles in a
HashSet
.)Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.