public class

ACL

extends Object
implements Cloneable
java.lang.Object
   ↳ com.google.code.com.sun.mail.imap.ACL

Class Overview

An access control list entry for a particular authentication identifier (user or group). Associates a set of Rights with the identifier. See RFC 2086.

Summary

Fields
private String name
private Rights rights
Public Constructors
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.
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String name

private Rights rights

Public Constructors

public ACL (String name)

Construct an ACL entry for the given identifier and with no rights.

Parameters
name The identifier name

public ACL (String name, Rights rights)

Construct an ACL entry for the given identifier with the given rights.

Parameters
name The identifier name
rights The rights

Public Methods

public Object clone ()

Clone this ACL entry.

Throws
CloneNotSupportedException

public String getName ()

Get the identifier name for this ACL entry.

Returns
  • the identifier name

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

public void setRights (Rights rights)

Set the rights associated with this ACL entry.

Parameters
rights The rights