static class VerificationRequester.VerifyTask extends Object implements Callable<VerificationResponse>
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log |
private int |
maxRetries |
private String |
url |
private String |
userAgent |
Constructor and Description |
---|
VerifyTask(String url,
String userAgent,
int maxRetries)
Set up a VerifyTask for the Yubico Validation protocol v2
|
Modifier and Type | Method and Description |
---|---|
VerificationResponse |
call()
Do the validation query for previous URL.
|
protected InputStream |
getResponseStream(URL url) |
private final org.slf4j.Logger log
private final String url
private final String userAgent
private final int maxRetries
public VerifyTask(String url, String userAgent, int maxRetries)
url
- the url to be useduserAgent
- the userAgent to be sent to the server, or NULL and one is calculatedmaxRetries
- the maximum number of times to retry on network or server errorpublic VerificationResponse call() throws Exception
call
in interface Callable<VerificationResponse>
Exception
- should not be anything but IOException
protected InputStream getResponseStream(URL url) throws IOException
IOException
Copyright © 2020 Yubico AB. All Rights Reserved.