public class BlindData extends Object
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_DH
bits 3-0 including per-client bit
|
static int |
AUTH_NONE
bits 3-0 including per-client bit
|
static int |
AUTH_ON
Enabled, unspecified type
|
static int |
AUTH_PSK
bits 3-0 including per-client bit
|
Constructor and Description |
---|
BlindData(I2PAppContext ctx,
Destination dest,
SigType blindType,
String secret) |
BlindData(I2PAppContext ctx,
Destination dest,
SigType blindType,
String secret,
int authType,
PrivateKey authKey) |
BlindData(I2PAppContext ctx,
SigningPublicKey spk,
SigType blindType,
String secret) |
BlindData(I2PAppContext ctx,
SigningPublicKey spk,
SigType blindType,
String secret,
int authType,
PrivateKey authKey) |
Modifier and Type | Method and Description |
---|---|
SigningPrivateKey |
getAlpha() |
PrivateKey |
getAuthPrivKey() |
boolean |
getAuthRequired() |
int |
getAuthType() |
Hash |
getBlindedHash() |
SigningPublicKey |
getBlindedPubKey() |
SigType |
getBlindedSigType() |
long |
getDate() |
Hash |
getDestHash() |
Destination |
getDestination() |
String |
getSecret() |
boolean |
getSecretRequired() |
SigningPublicKey |
getUnblindedPubKey() |
void |
setAuthRequired() |
void |
setDate(long date) |
void |
setDestination(Destination d) |
void |
setSecretRequired() |
String |
toBase32()
b33 format
|
String |
toString() |
public static final int AUTH_NONE
public static final int AUTH_DH
public static final int AUTH_PSK
public static final int AUTH_ON
public BlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret)
secret
- may be null or zero-lengthIllegalArgumentException
- on various errorspublic BlindData(I2PAppContext ctx, Destination dest, SigType blindType, String secret, int authType, PrivateKey authKey)
secret
- may be null or zero-lengthIllegalArgumentException
- on various errorspublic BlindData(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret)
secret
- may be null or zero-lengthIllegalArgumentException
- on various errorspublic BlindData(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret, int authType, PrivateKey authKey)
secret
- may be null or zero-lengthIllegalArgumentException
- on various errorspublic SigningPublicKey getUnblindedPubKey()
public SigType getBlindedSigType()
public SigningPublicKey getBlindedPubKey()
public Hash getDestHash()
public Hash getBlindedHash()
public SigningPrivateKey getAlpha()
public Destination getDestination()
public void setDestination(Destination d)
IllegalArgumentException
- on SigningPublicKey mismatchpublic String getSecret()
public int getAuthType()
public PrivateKey getAuthPrivKey()
public String toBase32()
public void setSecretRequired()
public boolean getSecretRequired()
public void setAuthRequired()
public boolean getAuthRequired()
public void setDate(long date)
public long getDate()