jsdsi
Class NameCert

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

public class NameCert
extends Cert

A SDSI name certificate: associates a string (a local name) with a Subject in the issuer's local namespace.

Version:
$Revision: 1.4.2.1 $
Author:
Sameer Ajmani, Sean Radford
See Also:
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
NameCert(Principal i, Subject s, Validity v, java.lang.String d, java.lang.String c, java.lang.String n)
          Creates a new name certificate from a given principal, subject, validity, display hint, comment, and (local) name.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Name getFullName()
          Returns the full name, that is the Name that is created with this issuer and the name-string.
 java.lang.String getName()
          Returns the name-string of this name certificate.
 int hashCode()
           
 boolean implies(Cert c)
           
 SexpList toSexp()
          Creates an SexpList -representation from this SDSI-object.
 
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

NameCert

public NameCert(Principal i,
                Subject s,
                Validity v,
                java.lang.String d,
                java.lang.String c,
                java.lang.String n)
Creates a new name certificate from a given principal, subject, validity, display hint, comment, and (local) name.

Parameters:
i - issuer (principal).
s - subject.
v - validity
d - display hint.
c - comment.
n - name-string.
Method Detail

getName

public java.lang.String getName()
Returns the name-string of this name certificate.

Returns:
the name-string of this name certificate.

getFullName

public Name getFullName()
Returns the full name, that is the Name that is created with this issuer and the name-string.

Returns:
a new Name created from this issuer and name-string.

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()
Description copied from class: Obj
Creates an SexpList -representation from this SDSI-object.

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


Copyright © 2002-2006 JSDSI. All Rights Reserved.