sdsi
Class SDSIPrivateKey
java.lang.Object
|
+--sdsi.SDSIObject
|
+--sdsi.SDSIPrivateKey
- All Implemented Interfaces:
- java.security.Key, java.security.PrivateKey, java.io.Serializable
- Direct Known Subclasses:
- SDSIRSAPrivateKey
- public class SDSIPrivateKey
- extends SDSIObject
- implements java.security.PrivateKey
- Author:
- Alexander Morcos, Sameer Ajmani
- See Also:
- Serialized Form
Fields inherited from interface java.security.PrivateKey |
serialVersionUID |
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 |
SDSIPrivateKey
SDSIPrivateKey()
SDSIPrivateKey
public SDSIPrivateKey(SexpList l)
throws SexpParseException
- Creates a new Private Key from a S-expression list.
- Throws:
SexpParseException
- if the list is not a correctly
formatted Private Key.
create
public static SDSIPrivateKey create(SexpList l)
throws SexpParseException,
SDSIException
SexpParseException
SDSIException
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.
toShortString
public java.lang.String toShortString()
- Description copied from class:
SDSIObject
- Returns a short descriptive string representing this SDSIObject.
- 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.