jsdsi
Class Cert

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

public abstract class Cert
extends Obj
implements Element

A single SPKI/SDSI certificate.

Version:
$Revision: 1.5.2.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani, Sean Radford
See Also:
AuthCert, NameCert, 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
Cert(Principal i, Subject s, Validity v, java.lang.String d, java.lang.String c)
          Creates a new Cert using a given issuer, subject, validity, display string, and comment.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getComment()
           
 java.lang.String getDisplay()
           
 Principal getIssuer()
           
 Subject getSubject()
           
 Validity getValidity()
           
 int hashCode()
           
 boolean implies(Cert c)
           
 
Methods inherited from class jsdsi.Obj
parseObj, parseObj, readResolve, toByteArray, toSexp, toString, toString, toTransport
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface jsdsi.Element
toSexp
 

Constructor Detail

Cert

public Cert(Principal i,
            Subject s,
            Validity v,
            java.lang.String d,
            java.lang.String c)
Creates a new Cert using a given issuer, subject, validity, display string, and comment.

Parameters:
i - issuer of this Cert.
s - subject of this Cert.
v - validity of this Cert.
d - display-string of this Cert.
c - comment of this Cert.
Method Detail

getIssuer

public Principal getIssuer()
Returns:
the issuer of this Cert.

getSubject

public Subject getSubject()
Returns:
the subject of this Cert.

getValidity

public Validity getValidity()
Returns:
the validity of this Cert.

getComment

public java.lang.String getComment()
Returns:
the comment of this Cert.

getDisplay

public java.lang.String getDisplay()
Returns:
the display string of this Cert.

equals

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

implies

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

hashCode

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


Copyright © 2002-2006 JSDSI. All Rights Reserved.