|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.Obj jsdsi.Principal jsdsi.PublicKey
A public key.
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 class jsdsi.Obj |
_obj |
Constructor Summary | |
PublicKey(java.lang.String a)
Creates a new PublicKey from an algorithm name. |
|
PublicKey(java.lang.String a,
java.net.URI[] u)
Creates a new PublicKey for a given algorithm name and
list of URIs. |
|
PublicKey(java.lang.String a,
java.net.URL[] u)
Deprecated. use PublicKey(String, URI[]) |
Method Summary | |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAlgorithm()
|
byte[] |
getEncoded()
|
java.lang.String |
getFormat()
|
java.net.URI[] |
getURIs()
|
java.net.URL[] |
getURLs()
Deprecated. use getURIs() |
int |
hashCode()
|
PublicKeyHash |
publicKeyHash(DigestAlgoEnum da)
Generate the corresponding PublicKeyHash for this PublicKey. |
boolean |
samePrincipalAs(Principal p)
Compares this Principal with another. |
SexpList |
toSexp()
Creates an SexpList -representation from this SDSI-object. |
Methods inherited from class jsdsi.Principal |
getName |
Methods inherited from class jsdsi.Obj |
parseObj, parseObj, readResolve, toByteArray, toString, toString, toTransport |
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 |
public PublicKey(java.lang.String a, java.net.URL[] u)
PublicKey(String, URI[])
PublicKey
for a given algorithm name and
list of URLs.
a
- name of the algorithm used.u
- list of URLs (may be null
).public PublicKey(java.lang.String a, java.net.URI[] u)
PublicKey
for a given algorithm name and
list of URIs.
a
- name of the algorithm used.u
- list of URIs (may be null
).public PublicKey(java.lang.String a)
PublicKey
from an algorithm name.
a
- name of the algorithm name used.Method Detail |
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
Key.getAlgorithm()
public java.lang.String getFormat()
getFormat
in interface java.security.Key
Key.getFormat()
public byte[] getEncoded()
getEncoded
in interface java.security.Key
Key.getEncoded()
public java.net.URL[] getURLs()
getURIs()
PublicKey
.public java.net.URI[] getURIs()
getURIs
in class Principal
PublicKey
maybe found.public PublicKeyHash publicKeyHash(DigestAlgoEnum da)
da
- the digest algorithm for the hash function.
public boolean samePrincipalAs(Principal p)
Principal
Principal
with another.
samePrincipalAs
in class Principal
p
- another principal to compare this one with.
true
if both principal are the same (with
respect to their public key), false
otherwise.Principal.samePrincipalAs(Principal)
public boolean equals(java.lang.Object o)
equals
in interface java.security.Principal
equals
in class Obj
Object.equals(Object)
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class Obj
Object.hashCode()
public final SexpList toSexp()
Obj
SexpList
-representation from this SDSI-object.
toSexp
in interface Element
toSexp
in class Obj
SexpList
that represents this SDSI-object.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |