public class YubicoClientImpl extends YubicoClient
| Modifier and Type | Field and Description |
|---|---|
private YubicoValidationService |
validationService |
clientId, key, sync, userAgent, wsapi_urls| Constructor and Description |
|---|
YubicoClientImpl() |
YubicoClientImpl(Integer id) |
YubicoClientImpl(Integer id,
String key) |
YubicoClientImpl(Integer id,
String key,
String sync) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isError(YubicoResponseStatus status)
Function is used to determine if the response status is an error or not.
|
YubicoResponse |
verify(String otp)
Validate an OTP using a webservice call to one or more ykval validation servers.
|
getClient, getClientId, getKey, getPublicId, getSync, getUserAgent, getWsapiUrls, isValidOTPFormat, setClientId, setKey, setSync, setUserAgent, setWsapiUrlsprivate YubicoValidationService validationService
public YubicoClientImpl()
public YubicoClientImpl(Integer id)
public YubicoResponse verify(String otp) throws YubicoValidationException, YubicoValidationFailure
verify in class YubicoClientotp - YubiKey OTP in modhex formatYubicoValidationException - for validation errors, like unreachable serversYubicoValidationFailure - for validation failures, like non matching otps in request and responseprivate boolean isError(YubicoResponseStatus status)
status - Copyright © 2013 Yubico AB. All Rights Reserved.