- All Known Implementing Classes:
LkupResult
public interface LookupResult
The return value of
I2PSession.lookupDest2(String, long).Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intB33 requires per-client auth private key, the router has a key, but decryption failed; please supply a new key in a blinding info message.static final intFor async calls only.static final intGeneral failure, probably a local hostname lookup failure, or a b32 lookup timeout.static final intB33 requires per-client auth private key but the router does not have it cached; please supply in a blinding info message.static final intB33 requires a lookup password and per-client auth private key but the router does not have them cached; please supply in a blinding info message.static final intB33 requires a lookup password but the router does not have it cached; please supply in a blinding info message.static final intSuccessful lookup;getDestination()will be non-null.Method Summary
All MethodsModifier and TypeMethodDescriptionDestination of the lookup, or null on failure.intgetNonce()For async calls only.intResult code of the lookup.
Field Details
RESULT_SUCCESS
RESULT_FAILURE
static final int RESULT_FAILUREGeneral failure, probably a local hostname lookup failure, or a b32 lookup timeout.- See Also:
RESULT_SECRET_REQUIRED
static final int RESULT_SECRET_REQUIREDB33 requires a lookup password but the router does not have it cached; please supply in a blinding info message.- See Also:
RESULT_KEY_REQUIRED
static final int RESULT_KEY_REQUIREDB33 requires per-client auth private key but the router does not have it cached; please supply in a blinding info message.- See Also:
RESULT_SECRET_AND_KEY_REQUIRED
static final int RESULT_SECRET_AND_KEY_REQUIREDB33 requires a lookup password and per-client auth private key but the router does not have them cached; please supply in a blinding info message.- See Also:
RESULT_DECRYPTION_FAILURE
static final int RESULT_DECRYPTION_FAILUREB33 requires per-client auth private key, the router has a key, but decryption failed; please supply a new key in a blinding info message.- See Also:
RESULT_DEFERRED
static final int RESULT_DEFERREDFor async calls only. Nonce will be non-zero and destination will be null. Callback will be called later with the final result and the same nonce.- See Also:
Method Details
getResultCode
int getResultCode()Result code of the lookup.- Returns:
- zero for success, nonzero for failure
getDestination
Destination getDestination()Destination of the lookup, or null on failure.- Returns:
- Destination on success, null on failure
getNonce
int getNonce()For async calls only. Nonce will be non-zero. Callback will be called later with the final result and the same nonce.- Returns:
- the nonzero token supplied to the async lookup and handed back to the callback, for correlating the reply with the request