public class InsertableClientSSK extends ClientSSK
Modifier and Type | Field and Description |
---|---|
DSAPrivateKey |
privKey |
CRYPTO_KEY_LENGTH, cryptoAlgorithm, cryptoKey, docName, ehDocname, EXTRA_LENGTH, pubKey, pubKeyHash
Modifier | Constructor and Description |
---|---|
protected |
InsertableClientSSK() |
|
InsertableClientSSK(java.lang.String docName,
byte[] pubKeyHash,
DSAPublicKey pubKey,
DSAPrivateKey privKey,
byte[] cryptoKey,
byte cryptoAlgorithm) |
Modifier and Type | Method and Description |
---|---|
static InsertableClientSSK |
create(FreenetURI uri) |
static InsertableClientSSK |
createRandom(RandomSource r,
java.lang.String docName) |
ClientSSKBlock |
encode(Bucket sourceData,
boolean asMetadata,
boolean dontCompress,
short alreadyCompressedCodec,
long sourceLength,
RandomSource r,
java.lang.String compressordescriptor) |
DSAGroup |
getCryptoGroup() |
FreenetURI |
getInsertURI() |
cloneKey, equals, getExtraBytes, getExtraBytes, getNodeKey, getPubKey, getURI, hashCode, internExtra, setPublicKey, toString
getNodeKey
getBaseKey
public final DSAPrivateKey privKey
public InsertableClientSSK(java.lang.String docName, byte[] pubKeyHash, DSAPublicKey pubKey, DSAPrivateKey privKey, byte[] cryptoKey, byte cryptoAlgorithm) throws java.net.MalformedURLException
java.net.MalformedURLException
protected InsertableClientSSK()
public static InsertableClientSSK create(FreenetURI uri) throws java.net.MalformedURLException
java.net.MalformedURLException
public ClientSSKBlock encode(Bucket sourceData, boolean asMetadata, boolean dontCompress, short alreadyCompressedCodec, long sourceLength, RandomSource r, java.lang.String compressordescriptor) throws SSKEncodeException, java.io.IOException, InvalidCompressionCodecException
SSKEncodeException
java.io.IOException
InvalidCompressionCodecException
public static InsertableClientSSK createRandom(RandomSource r, java.lang.String docName)
public FreenetURI getInsertURI()
public DSAGroup getCryptoGroup()