|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.security.OpenwingsRole
This interface represents the abstract notion of a user role.
In the Openwings role-based access control model, each user may be assigned
one or more Openwings roles, which are aggregated in a
javax.security.auth.Subject.
Here is an example policy grant clause that grants permissions to users who have the Openwings role "administrator".
grant Principal net.openwings.security.OpenwingsRole "administrator" {
Permission java.io.FilePermission "c:\tmp", "read";
};
.
| Constructor Summary | |
OpenwingsRole(java.lang.String name)
This constructs an Openwings role based on a role name. |
|
| Method Summary | |
boolean |
equals(java.lang.Object another)
This method overrides the default equals() implementation. |
java.lang.String |
getName()
This method returns the name of the role. |
int |
hashCode()
This method overrides the default hashCode() implementation. |
java.lang.String |
toString()
This method overrides the default toString() implementation. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public OpenwingsRole(java.lang.String name)
name - the name of the role| Method Detail |
public java.lang.String getName()
getName in interface java.security.Principalpublic int hashCode()
hashCode() implementation.
hashCode in interface java.security.Principalpublic java.lang.String toString()
toString() implementation.
toString in interface java.security.Principalpublic boolean equals(java.lang.Object another)
equals() implementation.
equals in interface java.security.Principalanother - object to compare
true if the object represents another
OpenwingsRole with the same name.
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||