sdsi
Class Def

java.lang.Object
  |
  +--sdsi.SDSIObject
        |
        +--sdsi.Cert
              |
              +--sdsi.Def
All Implemented Interfaces:
SequenceItem, java.io.Serializable

public class Def
extends Cert

Author:
Alexander Morcos, Sameer Ajmani
See Also:
Serialized Form

Field Summary
(package private)  Name issuerName
           
 
Fields inherited from class sdsi.Cert
certDisplayDefined, commentDefined, delegate, issuer, s, t, valid, versionDefined
 
Fields inherited from class sdsi.SDSIObject
_hash, _modified, srep
 
Constructor Summary
Def(SDSIPrincipal issuer, java.lang.String name, Subject s, Validity v)
          Creates a new Def from an issuer name, a subject, and a Validity
Def(SexpList l, Name issuerName)
          Creates a new Def from a SexpList.
 
Method Summary
 java.lang.String getAbbreviation()
          Returns a single or double letter abbreviation this SDSIObject.
 Name getName()
           
 java.lang.String getNameString()
           
 java.lang.String getType()
          Returns a short string that represents the type of this SDSIObject.
 Cert reduce(Cert cert)
           
 boolean reduces(Cert cert)
           
 boolean sameAs(java.lang.Object object)
           
 java.lang.String toShortString()
          Returns a short descriptive string representing this SDSIObject.
 
Methods inherited from class sdsi.Cert
create, getIssuer, getSubject, getValidity, isReducing, parseItem, reducedTag, reducedValidity, valid
 
Methods inherited from class sdsi.SDSIObject
equals, getHash, getHash, getSrep, hashCode, principalParse, readFrom, readFrom, sign, toReadableString, 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

issuerName

Name issuerName
Constructor Detail

Def

public Def(SDSIPrincipal issuer,
           java.lang.String name,
           Subject s,
           Validity v)
    throws SDSIException
Creates a new Def from an issuer name, a subject, and a Validity


Def

public Def(SexpList l,
           Name issuerName)
    throws SexpParseException
Creates a new Def from a SexpList. The Name which is the issuer is also given, because in practice, this constructor is called from within Cert.create which has already parsed the issuer out of the S-expression

Throws:
SexpParseException - if the SexpList does not correctly represent a SDSI name defintion certificate
Method Detail

sameAs

public boolean sameAs(java.lang.Object object)
Overrides:
sameAs in class Cert

getType

public java.lang.String getType()
Description copied from class: SDSIObject
Returns a short string that represents the type of this SDSIObject.

Overrides:
getType in class SDSIObject
Returns:
a string represent the type of SDSIObject we're dealing with.

toShortString

public java.lang.String toShortString()
Description copied from class: SDSIObject
Returns a short descriptive string representing this SDSIObject.

Specified by:
toShortString in class SDSIObject
Returns:
a short string description of this SDSIObject.

getAbbreviation

public java.lang.String getAbbreviation()
Description copied from class: SDSIObject
Returns a single or double letter abbreviation this SDSIObject.

Specified by:
getAbbreviation in class SDSIObject
Returns:
an abbreviated description of this SDSIObject.

getName

public Name getName()

getNameString

public java.lang.String getNameString()

reduces

public boolean reduces(Cert cert)
Specified by:
reduces in class Cert

reduce

public Cert reduce(Cert cert)
Specified by:
reduce in class Cert