Top Description Fields Constructors Methods
com.sun.mail.imap

public Class ACL

extends Object
implements Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable
Imports
java.util.*

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

Field Summary

Modifier and TypeField and Description
private String
private Rights

Constructor Summary

AccessConstructor and Description
public
ACL(String
the identifier name
name
)

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

public
ACL(String
the identifier name
name
,
Rights
the rights
rights
)

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

Method Summary

Modifier and TypeMethod and Description
public Object
clone()

Overrides java.lang.Object.clone.

Clone this ACL entry.
public String

Returns:

the identifier name
getName
()

Get the identifier name for this ACL entry.

public Rights

Returns:

the rights
getRights
()

Get the rights associated with this ACL entry.

public void
setRights(Rights
the rights
rights
)

Set the rights associated with this ACL entry.

Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

nameback to summary
private String name
rightsback to summary
private Rights rights

Constructor Detail

ACLback to summary
public ACL(String name)

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

Parameters
name:String

the identifier name

ACLback to summary
public ACL(String name, Rights rights)

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

Parameters
name:String

the identifier name

rights:Rights

the rights

Method Detail

cloneback to summary
public Object clone() throws CloneNotSupportedException

Overrides java.lang.Object.clone.

Clone this ACL entry.

Returns:Object

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
Exceptions
CloneNotSupportedException:

Doc from java.lang.Object.clone.

if the object's class does not support the Cloneable interface. Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.

getNameback to summary
public String getName()

Get the identifier name for this ACL entry.

Returns:String

the identifier name

getRightsback to summary
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:Rights

the rights

setRightsback to summary
public void setRights(Rights rights)

Set the rights associated with this ACL entry.

Parameters
rights:Rights

the rights