public class ClientSSK extends ClientKey
Modifier and Type | Field and Description |
---|---|
static int |
CRYPTO_KEY_LENGTH |
byte |
cryptoAlgorithm
Crypto type
|
byte[] |
cryptoKey
Encryption key
|
java.lang.String |
docName
Document name
|
byte[] |
ehDocname
Encrypted hashed docname
|
static int |
EXTRA_LENGTH |
protected DSAPublicKey |
pubKey
Public key
|
byte[] |
pubKeyHash
Public key hash
|
Modifier | Constructor and Description |
---|---|
protected |
ClientSSK() |
|
ClientSSK(FreenetURI origURI) |
|
ClientSSK(java.lang.String docName,
byte[] pubKeyHash,
byte[] extras,
DSAPublicKey pubKey,
byte[] cryptoKey) |
Modifier and Type | Method and Description |
---|---|
ClientKey |
cloneKey() |
boolean |
equals(java.lang.Object o) |
protected byte[] |
getExtraBytes() |
protected static byte[] |
getExtraBytes(byte cryptoAlgorithm) |
Key |
getNodeKey(boolean cloneKey) |
DSAPublicKey |
getPubKey() |
FreenetURI |
getURI() |
int |
hashCode() |
static byte[] |
internExtra(byte[] buf) |
void |
setPublicKey(DSAPublicKey pubKey) |
java.lang.String |
toString() |
getNodeKey
getBaseKey
public final byte cryptoAlgorithm
public final java.lang.String docName
protected transient DSAPublicKey pubKey
public final byte[] pubKeyHash
public final byte[] cryptoKey
public final byte[] ehDocname
public static final int CRYPTO_KEY_LENGTH
public static final int EXTRA_LENGTH
public ClientSSK(java.lang.String docName, byte[] pubKeyHash, byte[] extras, DSAPublicKey pubKey, byte[] cryptoKey) throws java.net.MalformedURLException
java.net.MalformedURLException
public ClientSSK(FreenetURI origURI) throws java.net.MalformedURLException
java.net.MalformedURLException
protected ClientSSK()
public void setPublicKey(DSAPublicKey pubKey)
public FreenetURI getURI()
getURI
in class BaseClientKey
protected final byte[] getExtraBytes()
protected static byte[] getExtraBytes(byte cryptoAlgorithm)
public static byte[] internExtra(byte[] buf)
public Key getNodeKey(boolean cloneKey)
getNodeKey
in class ClientKey
public DSAPublicKey getPubKey()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object