jsdsi
Class AclEntry

java.lang.Object
  extended byjsdsi.Obj
      extended byjsdsi.AclEntry
All Implemented Interfaces:
java.io.Serializable

public class AclEntry
extends Obj

An ACL entry that specifies a permission (the Tag) and a set of principals (the Subject) that may access the object protected by this entry's ACL.

Version:
$Revision: 1.4.2.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani, Sean Radford
See Also:
Acl, Serialized Form

Field Summary
 
Fields inherited from class jsdsi.Obj
_obj
 
Constructor Summary
AclEntry(Subject s, Tag t, boolean p, Validity v, java.lang.String c)
          Creates a new AclEntry from a given subject, tag, delegation bit, validity, and comment.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getComment()
          Returns the comment of this AclEntry (may be null).
 boolean getPropagate()
          Returns the delegation bit of this AclEntry's auth.
 Subject getSubject()
          Returns the subject of this AclEntry.
 Tag getTag()
          Returns the tag of this AclEntry's auth.
 Validity getValidity()
          Returns the validity of this AclEntry (may be null).
 int hashCode()
           
 SexpList toSexp()
          Returns an SexpList that represents this AclEntry.
 
Methods inherited from class jsdsi.Obj
parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AclEntry

public AclEntry(Subject s,
                Tag t,
                boolean p,
                Validity v,
                java.lang.String c)
Creates a new AclEntry from a given subject, tag, delegation bit, validity, and comment.

Parameters:
s - subject of this AclEntry.
t - tag of this AclEntry.
p - delegation bit of this AclEntry.
v - validity of this AclEntry.
c - comment of this AclEntry.
Method Detail

getSubject

public Subject getSubject()
Returns the subject of this AclEntry.

Returns:
the subject of this AclEntry.

getTag

public Tag getTag()
Returns the tag of this AclEntry's auth.

Returns:
the tag of this AclEntry's auth.

getPropagate

public boolean getPropagate()
Returns the delegation bit of this AclEntry's auth.

Returns:
the delegation bit of this AclEntry' auth.

getValidity

public Validity getValidity()
Returns the validity of this AclEntry (may be null).

Returns:
the validity of this AclEntry.

getComment

public java.lang.String getComment()
Returns the comment of this AclEntry (may be null).

Returns:
the comment of this AclEntry.

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in class Obj
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Specified by:
hashCode in class Obj
See Also:
Object.hashCode()

toSexp

public SexpList toSexp()
Returns an SexpList that represents this AclEntry.

Specified by:
toSexp in class Obj
Returns:
an SexpList that represents this SDSI-object.


Copyright © 2002-2006 JSDSI. All Rights Reserved.