public class U2F extends Object
| Constructor and Description |
|---|
U2F() |
public RegisterRequestData startRegistration(String appId, Iterable<? extends DeviceRegistration> devices)
appId - the U2F AppID. Set this to the Web Origin of the login page, unless you need to
support logging in from multiple Web Origins.devices - the devices currently registered to the user.public AuthenticateRequestData startAuthentication(String appId, Iterable<? extends DeviceRegistration> devices) throws U2fBadInputException, NoEligableDevicesException
public DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response) throws U2fBadInputException
U2fBadInputExceptionpublic DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response, Set<String> facets) throws U2fBadInputException
registerRequestData - the RegisterResponseData created by calling startRegistrationresponse - The response from the device/client.facets - A list of valid facets to verify against.U2fBadInputExceptionpublic DeviceRegistration finishAuthentication(AuthenticateRequestData authenticateRequestData, AuthenticateResponse response, Iterable<? extends DeviceRegistration> devices) throws U2fBadInputException, DeviceCompromisedException
public DeviceRegistration finishAuthentication(AuthenticateRequestData authenticateRequestData, AuthenticateResponse response, Iterable<? extends DeviceRegistration> devices, Set<String> facets) throws U2fBadInputException, DeviceCompromisedException
authenticateRequestData - the AuthenticateRequestData created by calling startAuthenticationresponse - the response from the device/client.devices - the devices currently registered to the user.facets - A list of valid facets to verify against.U2fBadInputExceptionDeviceCompromisedExceptionCopyright © 2015 Yubico. All Rights Reserved.