Package com.sun.mail.imap
Class ACL
- java.lang.Object
 - 
- com.sun.mail.imap.ACL
 
 
- 
- All Implemented Interfaces:
 java.lang.Cloneable
public class ACL extends java.lang.Object implements java.lang.CloneableAn access control list entry for a particular authentication identifier (user or group). Associates a set of Rights with the identifier. See RFC 2086. 
- 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Clone this ACL entry.java.lang.StringgetName()Get the identifier name for this ACL entry.RightsgetRights()Get the rights associated with this ACL entry.voidsetRights(Rights rights)Set the rights associated with this ACL entry. 
 - 
 
- 
- 
Constructor Detail
- 
ACL
public ACL(java.lang.String name)
Construct an ACL entry for the given identifier and with no rights.- Parameters:
 name- the identifier name
 
- 
ACL
public ACL(java.lang.String name, Rights rights)Construct an ACL entry for the given identifier with the given rights.- Parameters:
 name- the identifier namerights- the rights
 
 - 
 
- 
Method Detail
- 
getName
public java.lang.String getName()
Get the identifier name for this ACL entry.- Returns:
 - the identifier name
 
 
- 
setRights
public void setRights(Rights rights)
Set the rights associated with this ACL entry.- Parameters:
 rights- the rights
 
- 
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.- Returns:
 - the rights
 
 
- 
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionClone this ACL entry.- Throws:
 java.lang.CloneNotSupportedException
 
 - 
 
 -