FileDocCategorySizeDatePackage
ACL.javaAPI DocJavaMail 1.4.33602Tue Nov 17 10:38:10 GMT 2009com.sun.mail.imap

ACL

public class ACL extends 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.

author
Bill Shannon

Fields Summary
private String
name
private Rights
rights
Constructors Summary
public ACL(String name)
Construct an ACL entry for the given identifier and with no rights.

param
name the identifier name

	this.name = name;
	this.rights = new Rights();
    
public ACL(String name, Rights rights)
Construct an ACL entry for the given identifier with the given rights.

param
name the identifier name
param
rights the rights

	this.name = name;
	this.rights = rights;
    
Methods Summary
public java.lang.Objectclone()
Clone this ACL entry.

	ACL acl = (ACL)super.clone();
	acl.rights = (Rights)this.rights.clone();
	return acl;
    
public java.lang.StringgetName()
Get the identifier name for this ACL entry.

return
the identifier name

	return name;
    
public com.sun.mail.imap.RightsgetRights()
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.

return
the rights

	return rights;
    
public voidsetRights(com.sun.mail.imap.Rights rights)
Set the rights associated with this ACL entry.

param
rights the rights

	this.rights = rights;