jsdsi
Class AuthCert
java.lang.Object
jsdsi.Obj
jsdsi.Cert
jsdsi.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
| 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. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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.
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.