jsdsi
Class PublicKeyHash

java.lang.Object
  |
  +--jsdsi.Obj
        |
        +--jsdsi.Principal
              |
              +--jsdsi.PublicKeyHash
All Implemented Interfaces:
java.security.Principal, Subject

public class PublicKeyHash
extends Principal

The cryptographic hash of a public key.

Author:
Sameer Ajmani

Nested Class Summary
 
Nested classes inherited from class jsdsi.Subject
Subject.Default
 
Constructor Summary
PublicKeyHash(Hash h)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 Hash getHash()
           
 int hashCode()
           
static PublicKeyHash parsePublicKeyHash(SexpList l)
           
 boolean samePrincipalAs(Principal p)
           
 SexpList toSexp()
           
 
Methods inherited from class jsdsi.Principal
getName, parsePrincipal
 
Methods inherited from class jsdsi.Obj
parseObj, parseObj, toByteArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

PublicKeyHash

public PublicKeyHash(Hash h)
Method Detail

getHash

public Hash getHash()

samePrincipalAs

public boolean samePrincipalAs(Principal p)
Specified by:
samePrincipalAs in class Principal

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.security.Principal
Specified by:
equals in class Obj

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Specified by:
hashCode in class Obj

toSexp

public SexpList toSexp()
Specified by:
toSexp in interface Subject
Specified by:
toSexp in class Obj

parsePublicKeyHash

public static PublicKeyHash parsePublicKeyHash(SexpList l)
                                        throws SexpParseException
SexpParseException