net.i2p.router.client
class LeaseRequestState extends Object
Constructor and Description |
---|
LeaseRequestState(Job onGranted,
Job onFailed,
long expiration,
LeaseSet requested) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiration()
when the request for the lease set expires
|
LeaseSet |
getGranted()
created lease set from client
|
boolean |
getIsSuccessful()
whether the request was successful in the time allotted
|
Job |
getOnFailed()
what to do if the lease set create fails / times out
|
Job |
getOnGranted()
what to do once the lease set is created
|
PrivateKey |
getPrivateKey()
the private encryption key received regarding the lease set
|
void |
getPrivateKey(PrivateKey pk) |
LeaseSet |
getRequested()
lease set that is being requested
|
SigningPrivateKey |
getSigningPrivateKey()
the private signing key received regarding the lease set (for revocation)
|
void |
getSigningPrivateKey(SigningPrivateKey spk) |
void |
setGranted(LeaseSet ls) |
void |
setIsSuccessful(boolean is) |
void |
setOnFailed(Job jb) |
void |
setOnGranted(Job jb) |
void |
setRequested(LeaseSet ls) |
String |
toString() |
public LeaseSet getGranted()
public void setGranted(LeaseSet ls)
public LeaseSet getRequested()
public void setRequested(LeaseSet ls)
public PrivateKey getPrivateKey()
public void getPrivateKey(PrivateKey pk)
public SigningPrivateKey getSigningPrivateKey()
public void getSigningPrivateKey(SigningPrivateKey spk)
public Job getOnGranted()
public void setOnGranted(Job jb)
public Job getOnFailed()
public void setOnFailed(Job jb)
public long getExpiration()
public boolean getIsSuccessful()
public void setIsSuccessful(boolean is)