jsdsi
Class Principal

java.lang.Object
  extended byjsdsi.Obj
      extended byjsdsi.Principal
All Implemented Interfaces:
java.security.Principal, java.io.Serializable, Subject
Direct Known Subclasses:
PublicKey, PublicKeyHash

public abstract class Principal
extends Obj
implements Subject, java.security.Principal

A principal: an entity that can define names and can grant and receive authorizations. Represented by a public key.

Version:
$Revision: 1.3.2.1 $ $Date: 2005/11/08 03:12:52 $
Author:
Sameer Ajmani, Sean Radford
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class jsdsi.Subject
Subject.Default
 
Field Summary
 
Fields inherited from class jsdsi.Obj
_obj
 
Constructor Summary
Principal()
           
 
Method Summary
 java.lang.String getName()
           
abstract  java.net.URI[] getURIs()
           
abstract  boolean samePrincipalAs(Principal p)
          Compares this Principal with another.
 
Methods inherited from class jsdsi.Obj
equals, hashCode, 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.Subject
toSexp
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

Principal

public Principal()
Method Detail

samePrincipalAs

public abstract boolean samePrincipalAs(Principal p)
Compares this Principal with another.

Parameters:
p - another principal to compare this one with.
Returns:
true if both principal are the same (with respect to their public key), false otherwise.

getName

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

getURIs

public abstract java.net.URI[] getURIs()


Copyright © 2002-2006 JSDSI. All Rights Reserved.