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
Fields inherited from interface java.security.PublicKey |
serialVersionUID |
Constructor Summary |
PublicKey(java.lang.String a)
|
PublicKey(java.lang.String a,
java.net.URL[] u)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
toString |
PublicKey
public PublicKey(java.lang.String a,
java.net.URL[] u)
PublicKey
public PublicKey(java.lang.String a)
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