sdsi
Class SDSISecretKey

java.lang.Object
  |
  +--sdsi.SDSIObject
        |
        +--sdsi.SDSISecretKey
All Implemented Interfaces:
java.io.Serializable, Subject

public class SDSISecretKey
extends SDSIObject
implements Subject

The class which represents secret keys in SDSI.

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

Field Summary
 
Fields inherited from class sdsi.SDSIObject
_hash, _modified, srep
 
Constructor Summary
SDSISecretKey(SexpList l)
          Creates a new SecretKey from a SexpList.
 
Method Summary
 java.lang.String getAbbreviation()
          Returns a single or double letter abbreviation this SDSIObject.
 java.lang.String getType()
          Returns a short string that represents the type of this SDSIObject.
 java.lang.String getURI()
          Returns the URI of the SecretKey if there is one.
 java.lang.String toShortString()
          Returns a short descriptive string representing this SDSIObject.
 
Methods inherited from class sdsi.SDSIObject
equals, getHash, getHash, getSrep, hashCode, principalParse, readFrom, readFrom, sameAs, 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.Subject
getSrep, sameAs
 

Constructor Detail

SDSISecretKey

public SDSISecretKey(SexpList l)
              throws SexpParseException
Creates a new SecretKey from a SexpList.

Throws:
SexpParseException - if the list is not a correctly formatted SDSI secret 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.

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.

getURI

public java.lang.String getURI()
Returns the URI of the SecretKey if there is one.

Returns:
a string that is the URI of the SecretKey if it has one, null otherwise.

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.