public class Grant
extends java.lang.Object
| Constructor and Description |
|---|
Grant(Grantee grantee,
java.lang.String permission)
Creates a new grant
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Checks to see if grants are equal.
|
Grantee |
getGrantee()
Gets the recipient of the grant
|
java.lang.String |
getPermission()
Gets the rights assigned the grantee
|
int |
hashCode()
Returns a hash code for the Grant.
|
java.lang.String |
toString()
Returns the grant in string form: grantee=permission
|
public Grant(Grantee grantee, java.lang.String permission)
grantee - the recipient of the permissionpermission - the rights to grant to the grantee. Use
the constants in the Permission class.public Grantee getGrantee()
public java.lang.String getPermission()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object