@Deprecated public class U2fPrimitives extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
U2F_VERSION
Deprecated.
|
| Constructor and Description |
|---|
U2fPrimitives()
Deprecated.
|
U2fPrimitives(com.yubico.u2f.crypto.Crypto crypto,
com.yubico.u2f.crypto.ChallengeGenerator challengeGenerator)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
DeviceRegistration |
finishRegistration(RegisterRequest registerRequest,
RegisterResponse response)
Deprecated.
|
DeviceRegistration |
finishRegistration(RegisterRequest registerRequest,
RegisterResponse response,
Set<String> facets)
Deprecated.
Finishes a previously started registration.
|
void |
finishSignature(SignRequest signRequest,
SignResponse response,
DeviceRegistration deviceRegistration)
Deprecated.
|
void |
finishSignature(SignRequest signRequest,
SignResponse response,
DeviceRegistration deviceRegistration,
Set<String> facets)
Deprecated.
Finishes a previously started signature.
|
RegisterRequest |
startRegistration(String appId)
Deprecated.
|
RegisterRequest |
startRegistration(String appId,
byte[] challenge)
Deprecated.
Initiates the registration of a device.
|
SignRequest |
startSignature(String appId,
DeviceRegistration deviceRegistration)
Deprecated.
Initiates the signing process.
|
SignRequest |
startSignature(String appId,
DeviceRegistration deviceRegistration,
byte[] challenge)
Deprecated.
Initiates the signing process.
|
public static final String U2F_VERSION
public U2fPrimitives(com.yubico.u2f.crypto.Crypto crypto,
com.yubico.u2f.crypto.ChallengeGenerator challengeGenerator)
public U2fPrimitives()
public RegisterRequest startRegistration(String appId)
startRegistration(String, byte[])public RegisterRequest startRegistration(String appId, byte[] challenge)
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.challenge - the challenge to usepublic DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException
public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response, Set<String> facets) throws U2fRegistrationException
registerRequest - response - the response from the device/client.U2fRegistrationExceptionpublic SignRequest startSignature(String appId, DeviceRegistration deviceRegistration)
public SignRequest startSignature(String appId, DeviceRegistration deviceRegistration, byte[] challenge)
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.deviceRegistration - the DeviceRegistration for which to initiate signing.challenge - the challenge to usepublic void finishSignature(SignRequest signRequest, SignResponse response, DeviceRegistration deviceRegistration) throws U2fAuthenticationException
public void finishSignature(SignRequest signRequest, SignResponse response, DeviceRegistration deviceRegistration, Set<String> facets) throws U2fAuthenticationException
signRequest - response - the response from the device/client.U2fAuthenticationExceptionCopyright © 2022 Yubico. All Rights Reserved.