com.sun.mail.imap
Class ACL
- Cloneable
public class ACL
extends java.lang.Object
implements Cloneable
An access control list entry for a particular authentication identifier
(user or group). Associates a set of Rights with the identifier.
See RFC 2086.
ACL(String name) - Construct an ACL entry for the given identifier and with no rights.
|
ACL(String name, Rights rights) - Construct an ACL entry for the given identifier with the given rights.
|
Object | clone() - Clone this ACL entry.
|
String | getName() - Get the identifier name for this ACL entry.
|
Rights | getRights() - Get the rights associated with this ACL entry.
|
void | setRights(Rights rights) - Set the rights associated with this ACL entry.
|
ACL
public ACL(String name)
Construct an ACL entry for the given identifier and with no rights.
name
- the identifier name
ACL
public ACL(String name,
Rights rights)
Construct an ACL entry for the given identifier with the given rights.
name
- the identifier namerights
- the rights
clone
public Object clone()
throws CloneNotSupportedException
Clone this ACL entry.
getName
public String getName()
Get the identifier name for this ACL entry.
getRights
public Rights getRights()
Get the rights associated with this ACL entry.
Returns the actual Rights object referenced by this ACL;
modifications to the Rights object will effect this ACL.
setRights
public void setRights(Rights rights)
Set the rights associated with this ACL entry.