|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.security.Permission SK.gnome.dwarf.mail.auth.MailPermission
Provides the mail permission.
Each mail permission is granted to a target mail folder. The permission name is full name of the target folder. It is OK to use wildcard character '*' as the last character of the name. In that case all folder names starting with the given string will be matched by this permission.
The permission action is represented by a string of characters - each single character represents a particular mail operation on the given folder:
Constructor Summary | |
MailPermission(java.lang.String mailbox,
java.lang.String actions)
Creates a new MailPermission. |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getActions()
Returns the string of current actions. |
int |
hashCode()
|
boolean |
impliedBy(MailPermission[] perms)
Whether this permission is implied by the given permissions. |
boolean |
implies(java.security.Permission p)
Whether this permission is implied by the given permission. |
void |
modifyActions(java.lang.String actions)
Modifies the actions. |
java.lang.String |
toString()
|
Methods inherited from class java.security.Permission |
getName, checkGuard, newPermissionCollection |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MailPermission(java.lang.String mailbox, java.lang.String actions)
mailbox
- the full folder nameactions
- the action stringMethod Detail |
public void modifyActions(java.lang.String actions)
The actions argument must be a string of characters. Each character represents a particular mail operation on the target folder. If the argument starts with '+' character, the actions are added to the current list of actions. If the argument starts with '-' character, the actions are removed from the current list of actions. If the argument is not prepended with any of these two characters, the current actions are replaced with the given ones.
actions
- the actionspublic java.lang.String getActions()
public boolean impliedBy(MailPermission[] perms)
This permission is implied by the given permissions only if at least one of the array elements implies this permission.
perms
- the array of mail permissions
public boolean implies(java.security.Permission p)
public boolean equals(java.lang.Object obj)
public int hashCode()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |