jsdsi
Class AuthCert

java.lang.Object
  extended byjsdsi.Obj
      extended byjsdsi.Cert
          extended byjsdsi.AuthCert
All Implemented Interfaces:
Element, java.io.Serializable

public class AuthCert
extends Cert

A SPKI authorization certificate: conveys a permission (the Tag) from the issuer to the subject. If the propagate flag is set, the subject can further delegate the permission.

Version:
$Revision: 1.5.2.1 $ $Date
Author:
Sameer Ajmani, Sean Radford
See Also:
Cert, Serialized Form

Nested Class Summary
 
Nested classes inherited from class jsdsi.Element
Element.Default
 
Field Summary
 
Fields inherited from class jsdsi.Obj
_obj
 
Constructor Summary
AuthCert(Principal i, Subject s, Validity v, java.lang.String d, java.lang.String c, Tag t, boolean p)
          Creates a new AuthCert from a given principal, subject, validity, display-string, comment, tag, and delegation bit.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean getPropagate()
           
 Tag getTag()
           
 int hashCode()
           
 boolean implies(Cert c)
           
 SexpList toSexp()
          Returns an SexpList that represents this AuthCert.
 
Methods inherited from class jsdsi.Cert
getComment, getDisplay, getIssuer, getSubject, getValidity
 
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

AuthCert

public AuthCert(Principal i,
                Subject s,
                Validity v,
                java.lang.String d,
                java.lang.String c,
                Tag t,
                boolean p)
Creates a new AuthCert from a given principal, subject, validity, display-string, comment, tag, and delegation bit.

Parameters:
i - principal of this AuthCert.
s - subject of this AuthCert.
v - validity of this AuthCert.
d - display-string of this AuthCert.
c - comment of this AuthCert.
t - tag of this AuthCert.
p - delegation bit of this AuthCert.
Method Detail

getTag

public Tag getTag()
Returns:
the tag of this AuthCert.

getPropagate

public boolean getPropagate()
Returns:
the delegation bit of this AuthCert.

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class Cert
See Also:
Object.equals(Object)

implies

public boolean implies(Cert c)
Overrides:
implies in class Cert
Returns:
true iff this is at least as strong as c

hashCode

public int hashCode()
Overrides:
hashCode in class Cert
See Also:
Object.hashCode()

toSexp

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

Specified by:
toSexp in interface Element
Specified by:
toSexp in class Obj
Returns:
an SexpList that represents this AuthCert.


Copyright © 2002-2006 JSDSI. All Rights Reserved.