|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--sdsi.SDSIObject | +--sdsi.Cert
The basic class which represents certificates in SDSI/SPKI 2.0.
Auth
,
Def
,
SDSIObject
,
Serialized FormField Summary | |
(package private) boolean |
certDisplayDefined
|
(package private) boolean |
commentDefined
|
(package private) boolean |
delegate
|
(package private) SDSIPrincipal |
issuer
|
(package private) Subject |
s
|
(package private) Tag |
t
|
(package private) Validity |
valid
|
(package private) boolean |
versionDefined
|
Fields inherited from class sdsi.SDSIObject |
_hash, _modified, srep |
Constructor Summary | |
protected |
Cert(SDSIPrincipal issuer,
Subject s,
Tag t,
boolean delegate,
Validity valid)
Initializes the variables in the Cert, does not set up the SexpList representation. |
protected |
Cert(SexpList l)
Initializes the variables in the Cert, including setting up the SexpList representation. |
Method Summary | |
static Cert |
create(SexpList l)
Creates a new Cert. |
SDSIPrincipal |
getIssuer()
Returns the issuer of this Cert. |
Subject |
getSubject()
Returns the subject of this Cert. |
Validity |
getValidity()
|
boolean |
isReducing()
|
protected void |
parseItem(SexpList list)
Parses a sub-list within the S-expression, this routine is called by the sub-class constructors. |
abstract Cert |
reduce(Cert cert)
|
protected Tag |
reducedTag(Tag otherTag)
|
protected Validity |
reducedValidity(Validity otherValid)
|
abstract boolean |
reduces(Cert cert)
|
boolean |
sameAs(java.lang.Object object)
|
boolean |
valid()
Tests if the Cert is currently valid. |
Methods inherited from class sdsi.SDSIObject |
equals, getAbbreviation, getHash, getHash, getSrep, getType, hashCode, principalParse, readFrom, readFrom, sign, toReadableString, toShortString, toString, writeCanonical, writeReadable |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface sdsi.SequenceItem |
getSrep |
Field Detail |
SDSIPrincipal issuer
Subject s
Tag t
boolean delegate
Validity valid
boolean versionDefined
boolean certDisplayDefined
boolean commentDefined
Constructor Detail |
protected Cert(SDSIPrincipal issuer, Subject s, Tag t, boolean delegate, Validity valid)
protected Cert(SexpList l) throws SexpParseException
SexpParseException
- if the SexpList is not a correctly
formatted SDSI certificate.Method Detail |
public boolean sameAs(java.lang.Object object)
sameAs
in class SDSIObject
public static Cert create(SexpList l) throws SexpParseException
l
- the SexpList that contains the certificate
SexpParseException
- if the SexpList is not a correctly
formatted SDSI certificateprotected void parseItem(SexpList list) throws SexpParseException
SexpParseException
- if the sub-list does not correctly
specify part of a Certpublic boolean valid()
true
if the cert is valid now,
false
otherwise.public SDSIPrincipal getIssuer()
public Subject getSubject()
public Validity getValidity()
protected Validity reducedValidity(Validity otherValid)
protected Tag reducedTag(Tag otherTag)
public boolean isReducing()
public abstract boolean reduces(Cert cert)
public abstract Cert reduce(Cert cert)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |