org.neuclear.id
Class Signatory

java.lang.Object
  extended by org.neuclear.id.Signatory
All Implemented Interfaces:
java.security.Principal

public final class Signatory
extends java.lang.Object
implements java.security.Principal

The Identity class is one of the most important concepts in NeuClear. This is a representation of an online identity. An online identity is defined as a entity online which can perform transactions with other identities. Thus an Identity doesnt have to be a real person or even a legal entitity.

Each Identity is known by its unique name which follows a hierarchical model somewhat similar to DNS. Examples of valid names are:

Each identity has got a PublicKey which identifies contracts signed by it.

New Identities are created using the IdentityBuilder class and signed by its parent Signatory.

See Also:
IdentityBuilder

Constructor Summary
Signatory(java.security.PublicKey pub)
          Constructor for creating an Identity object for a "Nymous" Identity.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.security.cert.Certificate getCertificate()
           
 java.security.cert.Certificate[] getCertificateChain()
           
 java.lang.String getName()
           
 java.security.PublicKey getPublicKey()
           
 int hashCode()
           
 Identity resolveIdentity()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Signatory

public Signatory(java.security.PublicKey pub)
Constructor for creating an Identity object for a "Nymous" Identity.

Parameters:
pub -
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

getPublicKey

public final java.security.PublicKey getPublicKey()

getCertificate

public final java.security.cert.Certificate getCertificate()

getCertificateChain

public final java.security.cert.Certificate[] getCertificateChain()

resolveIdentity

public final Identity resolveIdentity()
                               throws NameResolutionException,
                                      InvalidNamedObjectException
Throws:
NameResolutionException
InvalidNamedObjectException

hashCode

public final int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object

toString

public final java.lang.String toString()
Specified by:
toString in interface java.security.Principal
Overrides:
toString in class java.lang.Object

equals

public final boolean equals(java.lang.Object object)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object


Copyright © 2002-2004 Antilles Software Ventures SA. All Rights Reserved.