jsdsi
Class PublicKey

java.lang.Object
  |
  +--jsdsi.Obj
        |
        +--jsdsi.Principal
              |
              +--jsdsi.PublicKey
All Implemented Interfaces:
Element, java.security.Key, java.security.Principal, java.security.PublicKey, java.io.Serializable, Subject
Direct Known Subclasses:
RSAPublicKey

public abstract class PublicKey
extends Principal
implements Element, java.security.PublicKey

A public key.

Author:
Sameer Ajmani
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class jsdsi.Element
Element.Default
 
Nested classes inherited from class jsdsi.Subject
Subject.Default
 
Field Summary
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Constructor Summary
PublicKey(java.lang.String a)
           
PublicKey(java.lang.String a, java.net.URL[] u)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.net.URL[] getURLs()
           
 int hashCode()
           
(package private) static PublicKey parsePublicKey(SexpList l)
           
 boolean samePrincipalAs(Principal p)
           
(package private) abstract  SexpList toPublicKeySexp()
           
 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

PublicKey

public PublicKey(java.lang.String a,
                 java.net.URL[] u)

PublicKey

public PublicKey(java.lang.String a)
Method Detail

getAlgorithm

public java.lang.String getAlgorithm()
Specified by:
getAlgorithm in interface java.security.Key

getFormat

public java.lang.String getFormat()
Specified by:
getFormat in interface java.security.Key

getEncoded

public byte[] getEncoded()
Specified by:
getEncoded in interface java.security.Key

getURLs

public java.net.URL[] getURLs()

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

toPublicKeySexp

abstract SexpList toPublicKeySexp()

toSexp

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

parsePublicKey

static PublicKey parsePublicKey(SexpList l)
                         throws SexpParseException
SexpParseException