@Test public void finishRegistrationShouldDetectIncorrectAppId() throws Exception { expectedException.expectCause(isA(U2fBadInputException.class)); RegisterRequest registerRequest = new RegisterRequest(SERVER_CHALLENGE_REGISTER_BASE64, APP_ID_ENROLL); DeviceRegistration response = u2f.finishRegistration( registerRequest, new RegisterResponse( TestVectors.REGISTRATION_DATA_WITH_DIFFERENT_APP_ID_BASE64, CLIENT_DATA_REGISTRATION_BASE64 ) ); fail("finishRegistration did not detect incorrect app ID"); }
public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException { return finishRegistration(registerRequest, response, null); }
U2fPrimitives { public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException { return finishRegistration(registerRequest, response, null); } }
U2fPrimitives { public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException { return finishRegistration(registerRequest, response, null); } U2fPrimitives(Crypto crypto, ChallengeGenerator challengeGenerator);  U2fPrimitives(); }
U2fPrimitives { public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException { return finishRegistration(registerRequest, response, null); } U2fPrimitives(Crypto crypto, ChallengeGenerator challengeGenerator);  U2fPrimitives(); RegisterRequest startRegistration(String appId); RegisterRequest startRegistration(String appId, byte[] challenge); DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response); DeviceRegistration finishRegistration(RegisterRequest registerRequest,
                                                 RegisterResponse response,
                                                 Set<String> facets); SignRequest startSignature(String appId, DeviceRegistration deviceRegistration); SignRequest startSignature(String appId, DeviceRegistration deviceRegistration, byte[] challenge); void finishSignature(SignRequest signRequest,
                                SignResponse response,
                                DeviceRegistration deviceRegistration); void finishSignature(SignRequest signRequest,
                                SignResponse response,
                                DeviceRegistration deviceRegistration,
                                Set<String> facets); }
U2fPrimitives { public DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response) throws U2fRegistrationException { return finishRegistration(registerRequest, response, null); } U2fPrimitives(Crypto crypto, ChallengeGenerator challengeGenerator);  U2fPrimitives(); RegisterRequest startRegistration(String appId); RegisterRequest startRegistration(String appId, byte[] challenge); DeviceRegistration finishRegistration(RegisterRequest registerRequest, RegisterResponse response); DeviceRegistration finishRegistration(RegisterRequest registerRequest,
                                                 RegisterResponse response,
                                                 Set<String> facets); SignRequest startSignature(String appId, DeviceRegistration deviceRegistration); SignRequest startSignature(String appId, DeviceRegistration deviceRegistration, byte[] challenge); void finishSignature(SignRequest signRequest,
                                SignResponse response,
                                DeviceRegistration deviceRegistration); void finishSignature(SignRequest signRequest,
                                SignResponse response,
                                DeviceRegistration deviceRegistration,
                                Set<String> facets); static final String U2F_VERSION; }