sdsi
Class SDSIPublicKey

java.lang.Object
  |
  +--sdsi.SDSIObject
        |
        +--sdsi.SDSIPrincipal
              |
              +--sdsi.SDSIPublicKey
All Implemented Interfaces:
java.security.Key, java.security.PublicKey, SequenceItem, java.io.Serializable, Subject
Direct Known Subclasses:
SDSIRSAPublicKey

public class SDSIPublicKey
extends SDSIPrincipal
implements java.security.PublicKey, SequenceItem

Author:
Alexander Morcos, Sameer Ajmani
See Also:
Serialized Form

Field Summary
 
Fields inherited from class sdsi.SDSIObject
_hash, _modified, srep
 
Fields inherited from interface java.security.PublicKey
serialVersionUID
 
Constructor Summary
(package private) SDSIPublicKey()
           
  SDSIPublicKey(SexpList l)
          Creates a new Public Key from a S-expression list.
 
Method Summary
static SDSIPublicKey create(SexpList l)
           
 java.lang.String getAbbreviation()
          Returns a single or double letter abbreviation this SDSIObject.
 java.lang.String getAlgID()
           
 java.lang.String getAlgorithm()
           
 byte[] getEncoded()
           
 java.lang.String getFormat()
           
 java.lang.String getType()
          Returns a short string that represents the type of this SDSIObject.
 java.lang.String getURI()
           
 java.lang.String toShortString()
          Returns a short descriptive string representing this SDSIObject.
 
Methods inherited from class sdsi.SDSIPrincipal
sameAs, samePrincipalAs
 
Methods inherited from class sdsi.SDSIObject
equals, getHash, getHash, getSrep, hashCode, principalParse, readFrom, readFrom, sign, toReadableString, toString, writeCanonical, writeReadable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface sdsi.SequenceItem
getSrep
 
Methods inherited from interface sdsi.Subject
getSrep
 

Constructor Detail

SDSIPublicKey

SDSIPublicKey()

SDSIPublicKey

public SDSIPublicKey(SexpList l)
              throws SexpParseException
Creates a new Public Key from a S-expression list.

Throws:
SexpParseException - if the list is not a correctly formatted Public Key.
Method Detail

toShortString

public java.lang.String toShortString()
Description copied from class: SDSIObject
Returns a short descriptive string representing this SDSIObject.

Specified by:
toShortString in interface Subject
Specified by:
toShortString in class SDSIObject
Returns:
a short string description of this SDSIObject.

create

public static SDSIPublicKey create(SexpList l)
                            throws SexpParseException,
                                   SDSIException
SexpParseException
SDSIException

getAlgID

public java.lang.String getAlgID()

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

getURI

public java.lang.String getURI()

getType

public java.lang.String getType()
Description copied from class: SDSIObject
Returns a short string that represents the type of this SDSIObject.

Overrides:
getType in class SDSIObject
Returns:
a string represent the type of SDSIObject we're dealing with.

getAbbreviation

public java.lang.String getAbbreviation()
Description copied from class: SDSIObject
Returns a single or double letter abbreviation this SDSIObject.

Specified by:
getAbbreviation in class SDSIObject
Returns:
an abbreviated description of this SDSIObject.