@Deprecated public class U2F extends Object
| Constructor and Description |
|---|
U2F()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceRegistration |
finishRegistration(RegisterRequestData registerRequestData,
RegisterResponse response)
Deprecated.
|
DeviceRegistration |
finishRegistration(RegisterRequestData registerRequestData,
RegisterResponse response,
Set<String> facets)
Deprecated.
Finishes a previously started high-level registration.
|
DeviceRegistration |
finishSignature(SignRequestData signRequestData,
SignResponse response,
Iterable<? extends DeviceRegistration> devices)
Deprecated.
|
DeviceRegistration |
finishSignature(SignRequestData signRequestData,
SignResponse response,
Iterable<? extends DeviceRegistration> devices,
Set<String> facets)
Deprecated.
Finishes a previously started high-level signing action.
|
RegisterRequestData |
startRegistration(String appId,
Iterable<? extends DeviceRegistration> devices)
Deprecated.
Initiates a high-level registration of a device, given a set of already registered devices.
|
SignRequestData |
startSignature(String appId,
Iterable<? extends DeviceRegistration> devices)
Deprecated.
|
static U2F |
withoutAppIdValidation()
Deprecated.
|
public static U2F withoutAppIdValidation()
public RegisterRequestData startRegistration(String appId, Iterable<? extends DeviceRegistration> devices) throws U2fBadConfigurationException
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.U2fBadConfigurationExceptionpublic SignRequestData startSignature(String appId, Iterable<? extends DeviceRegistration> devices) throws U2fBadConfigurationException, NoEligibleDevicesException
public DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response) throws U2fRegistrationException
U2fRegistrationExceptionpublic DeviceRegistration finishRegistration(RegisterRequestData registerRequestData, RegisterResponse response, Set<String> facets) throws U2fRegistrationException
registerRequestData - the RegisterResponseData created by calling startRegistrationresponse - The response from the device/client.facets - A list of valid facets to verify against.U2fRegistrationException - if parsing or verification of the response failspublic DeviceRegistration finishSignature(SignRequestData signRequestData, SignResponse response, Iterable<? extends DeviceRegistration> devices) throws U2fAuthenticationException
public DeviceRegistration finishSignature(SignRequestData signRequestData, SignResponse response, Iterable<? extends DeviceRegistration> devices, Set<String> facets) throws U2fAuthenticationException
signRequestData - the SignRequestData created by calling startSignatureresponse - the response from the device/client.devices - the devices currently registered to the user.facets - A list of valid facets to verify against.InvalidDeviceCounterException - if the response is valid but the signature counter has not increased.DeviceCompromisedException - if the device with the response's key handle is marked as compromised.U2fAuthenticationException - if parsing or verification of the response fails.Copyright © 2022 Yubico. All Rights Reserved.