| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjsdsi.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 PublicKeyfrom an algorithm name. | |
| PublicKey(java.lang.String a,
          java.net.URI[] u)Creates a new PublicKeyfor 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 Principalwith 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.KeyKey.getAlgorithm()public java.lang.String getFormat()
getFormat in interface java.security.KeyKey.getFormat()public byte[] getEncoded()
getEncoded in interface java.security.KeyKey.getEncoded()public java.net.URL[] getURLs()
getURIs()
PublicKey.public java.net.URI[] getURIs()
getURIs in class PrincipalPublicKey maybe found.public PublicKeyHash publicKeyHash(DigestAlgoEnum da)
da - the digest algorithm for the hash function.
public boolean samePrincipalAs(Principal p)
PrincipalPrincipal with another.
samePrincipalAs in class Principalp - 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.Principalequals in class ObjObject.equals(Object)public int hashCode()
hashCode in interface java.security.PrincipalhashCode in class ObjObject.hashCode()public final SexpList toSexp()
ObjSexpList -representation from this SDSI-object.
toSexp in interface ElementtoSexp in class ObjSexpList that represents this SDSI-object.| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||