public class U2F
extends java.lang.Object
Constructor and Description |
---|
U2F() |
Modifier and Type | Method and Description |
---|---|
DeviceRegistration |
finishAuthentication(AuthenticateRequestData authenticateRequestData,
AuthenticateResponse response,
java.lang.Iterable<? extends DeviceRegistration> devices) |
DeviceRegistration |
finishAuthentication(AuthenticateRequestData authenticateRequestData,
AuthenticateResponse response,
java.lang.Iterable<? extends DeviceRegistration> devices,
java.util.Set<java.lang.String> facets)
Finishes a previously started high-level authentication.
|
DeviceRegistration |
finishRegistration(RegisterRequestData registerRequestData,
RegisterResponse response) |
DeviceRegistration |
finishRegistration(RegisterRequestData registerRequestData,
RegisterResponse response,
java.util.Set<java.lang.String> facets)
Finishes a previously started high-level registration.
|
AuthenticateRequestData |
startAuthentication(java.lang.String appId,
java.lang.Iterable<? extends DeviceRegistration> devices) |
RegisterRequestData |
startRegistration(java.lang.String appId,
java.lang.Iterable<? extends DeviceRegistration> devices)
Initiates a high-level registration of a device, given a set of already registered devices.
|
public RegisterRequestData startRegistration(java.lang.String appId, java.lang.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(java.lang.String appId, java.lang.Iterable<? extends DeviceRegistration> devices) throws U2fException
U2fException
public DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response) throws U2fException
U2fException
public DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response, java.util.Set<java.lang.String> facets) throws U2fException
registerRequestData
- the RegisterResponseData created by calling startRegistrationresponse
- The response from the device/client.facets
- A list of valid facets to verify against.U2fException
public DeviceRegistration finishAuthentication(AuthenticateRequestData authenticateRequestData, AuthenticateResponse response, java.lang.Iterable<? extends DeviceRegistration> devices) throws U2fException
public DeviceRegistration finishAuthentication(AuthenticateRequestData authenticateRequestData, AuthenticateResponse response, java.lang.Iterable<? extends DeviceRegistration> devices, java.util.Set<java.lang.String> facets) throws U2fException
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.U2fException