public class USK extends BaseClientKey implements java.lang.Comparable<USK>, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
byte |
cryptoAlgorithm
Encryption type
|
protected byte[] |
cryptoKey
Encryption key
|
static java.util.Comparator<USK> |
FAST_COMPARATOR |
protected byte[] |
pubKeyHash
Public key hash
|
protected static java.lang.String |
SEPARATOR |
java.lang.String |
siteName |
long |
suggestedEdition |
Modifier | Constructor and Description |
---|---|
protected |
USK() |
|
USK(byte[] pubKeyHash,
byte[] cryptoKey,
byte[] extra,
java.lang.String siteName,
long suggestedEdition) |
protected |
USK(byte[] pubKeyHash2,
byte[] cryptoKey2,
java.lang.String siteName2,
long suggestedEdition2,
byte cryptoAlgorithm) |
|
USK(ClientSSK ssk,
long myARKNumber) |
|
USK(USK usk) |
Modifier and Type | Method and Description |
---|---|
USK |
clearCopy() |
int |
compareTo(USK o) |
USK |
copy() |
USK |
copy(long edition) |
static USK |
create(FreenetURI uri) |
boolean |
equals(java.lang.Object o) |
boolean |
equals(java.lang.Object o,
boolean includeVersion) |
FreenetURI |
getBaseSSK() |
java.lang.String |
getName(long ver) |
byte[] |
getPubKeyHash() |
ClientKey |
getSSK() |
ClientSSK |
getSSK(long ver) |
ClientSSK |
getSSK(java.lang.String string) |
FreenetURI |
getURI() |
int |
hashCode() |
boolean |
samePubKeyHash(NodeSSK k) |
java.lang.String |
toString() |
FreenetURI |
turnMySSKIntoUSK(FreenetURI uri) |
getBaseKey
protected static final java.lang.String SEPARATOR
public final byte cryptoAlgorithm
protected final byte[] pubKeyHash
protected final byte[] cryptoKey
public final java.lang.String siteName
public final long suggestedEdition
public static final java.util.Comparator<USK> FAST_COMPARATOR
public USK(byte[] pubKeyHash, byte[] cryptoKey, byte[] extra, java.lang.String siteName, long suggestedEdition) throws java.net.MalformedURLException
java.net.MalformedURLException
protected USK(byte[] pubKeyHash2, byte[] cryptoKey2, java.lang.String siteName2, long suggestedEdition2, byte cryptoAlgorithm)
protected USK()
public USK(ClientSSK ssk, long myARKNumber)
public USK(USK usk)
public static USK create(FreenetURI uri) throws java.net.MalformedURLException
java.net.MalformedURLException
public FreenetURI getURI()
getURI
in class BaseClientKey
public ClientSSK getSSK(long ver)
public ClientSSK getSSK(java.lang.String string)
public java.lang.String getName(long ver)
public ClientKey getSSK()
public USK copy(long edition)
public USK clearCopy()
public final USK copy()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean equals(java.lang.Object o, boolean includeVersion)
public int hashCode()
hashCode
in class java.lang.Object
public FreenetURI getBaseSSK()
public java.lang.String toString()
toString
in class java.lang.Object
public FreenetURI turnMySSKIntoUSK(FreenetURI uri)
public int compareTo(USK o)
compareTo
in interface java.lang.Comparable<USK>
public byte[] getPubKeyHash()
public boolean samePubKeyHash(NodeSSK k)