public class YubicoResponseImpl extends Object implements YubicoResponse
| Modifier and Type | Field and Description |
|---|---|
private String |
h |
private Map<String,String> |
keyValueMap |
private String |
nonce |
private String |
otp |
private String |
sessioncounter |
private String |
sessionuse |
private String |
sl |
private YubicoResponseStatus |
status |
private String |
t |
private String |
timestamp |
| Constructor and Description |
|---|
YubicoResponseImpl(InputStream inStream) |
| Modifier and Type | Method and Description |
|---|---|
String |
getH()
Signature of the response, with the same API key as the request.
|
Map<String,String> |
getKeyValueMap()
Returns all parameters from the response as a Map
|
String |
getNonce()
Echos back the nonce from the request.
|
String |
getOtp()
Echos back the OTP from the request, should match.
|
String |
getPublicId()
Returns the public id of the returned OTP
|
String |
getSessioncounter()
Returns the non-volatile counter that is incremented on power-up.
|
String |
getSessionuse()
Returns the volatile counter that is incremented on each button-press,
starts at 0 after power-up.
|
String |
getSl()
Returns the amount of sync the server achieved before sending the
response.
|
YubicoResponseStatus |
getStatus()
Server response to the request.
|
String |
getT()
UTC timestamp from the server when response was processed.
|
String |
getTimestamp()
Returns the internal timestamp from the YubiKey 8hz timer.
|
void |
setH(String h) |
void |
setNonce(String nonce) |
void |
setOtp(String otp) |
void |
setSessioncounter(String sessioncounter) |
void |
setSessionuse(String sessionuse) |
void |
setSl(String sl) |
void |
setStatus(YubicoResponseStatus status) |
void |
setT(String t) |
void |
setTimestamp(String timestamp) |
String |
toString() |
private String h
private String t
private YubicoResponseStatus status
private String timestamp
private String sessioncounter
private String sessionuse
private String sl
private String otp
private String nonce
public YubicoResponseImpl(InputStream inStream) throws IOException, YubicoInvalidResponse
IOExceptionYubicoInvalidResponsepublic Map<String,String> getKeyValueMap()
YubicoResponsegetKeyValueMap in interface YubicoResponsepublic String getH()
YubicoResponsegetH in interface YubicoResponsepublic void setH(String h)
public String getT()
YubicoResponsegetT in interface YubicoResponsepublic void setT(String t)
public YubicoResponseStatus getStatus()
YubicoResponsegetStatus in interface YubicoResponseYubicoResponseStatuspublic void setStatus(YubicoResponseStatus status)
public String getTimestamp()
YubicoResponsegetTimestamp in interface YubicoResponsepublic void setTimestamp(String timestamp)
public String getSessioncounter()
YubicoResponsegetSessioncounter in interface YubicoResponsepublic void setSessioncounter(String sessioncounter)
public String getSessionuse()
YubicoResponsegetSessionuse in interface YubicoResponsepublic void setSessionuse(String sessionuse)
public String getSl()
YubicoResponsegetSl in interface YubicoResponsepublic void setSl(String sl)
public String getOtp()
YubicoResponsegetOtp in interface YubicoResponsepublic void setOtp(String otp)
public String getNonce()
YubicoResponsegetNonce in interface YubicoResponsepublic void setNonce(String nonce)
public String getPublicId()
YubicoResponsegetPublicId in interface YubicoResponseCopyright © 2013 Yubico AB. All Rights Reserved.