@Test public void serverDataValidation() throws Exception{ RegistrationResponseProcessing rrp = new RegistrationResponseProcessing(5*60*1000, new NotaryImpl()); RegistrationResponse response = getResponse(); response.header.serverData = prepareServerData (); RegistrationRecord[] processResponse = rrp.processResponse(response); assertTrue(processResponse.length == 1); logger.info("AAID="+processResponse[0].authenticator.AAID); }
public RegistrationRecord[] processResponse(RegistrationResponse response) throws Exception { checkAssertions(response); RegistrationRecord[] records = new RegistrationRecord[response.assertions.length]; checkVersion(response.header.upv); checkServerData(response.header.serverData, records); FinalChallengeParams fcp = getFcp(response); checkFcp(fcp); for (int i = 0; i < records.length; i++) { records[i] = processAssertions(response.assertions[i], records[i]); } return records; }
RegistrationResponseProcessing { public RegistrationRecord[] processResponse(RegistrationResponse response) throws Exception { checkAssertions(response); RegistrationRecord[] records = new RegistrationRecord[response.assertions.length]; checkVersion(response.header.upv); checkServerData(response.header.serverData, records); FinalChallengeParams fcp = getFcp(response); checkFcp(fcp); for (int i = 0; i < records.length; i++) { records[i] = processAssertions(response.assertions[i], records[i]); } return records; } }
RegistrationResponseProcessing { public RegistrationRecord[] processResponse(RegistrationResponse response) throws Exception { checkAssertions(response); RegistrationRecord[] records = new RegistrationRecord[response.assertions.length]; checkVersion(response.header.upv); checkServerData(response.header.serverData, records); FinalChallengeParams fcp = getFcp(response); checkFcp(fcp); for (int i = 0; i < records.length; i++) { records[i] = processAssertions(response.assertions[i], records[i]); } return records; } RegistrationResponseProcessing();  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary);  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary, CertificateValidator certificateValidator); }
RegistrationResponseProcessing { public RegistrationRecord[] processResponse(RegistrationResponse response) throws Exception { checkAssertions(response); RegistrationRecord[] records = new RegistrationRecord[response.assertions.length]; checkVersion(response.header.upv); checkServerData(response.header.serverData, records); FinalChallengeParams fcp = getFcp(response); checkFcp(fcp); for (int i = 0; i < records.length; i++) { records[i] = processAssertions(response.assertions[i], records[i]); } return records; } RegistrationResponseProcessing();  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary);  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary, CertificateValidator certificateValidator); RegistrationRecord[] processResponse(RegistrationResponse response); }
RegistrationResponseProcessing { public RegistrationRecord[] processResponse(RegistrationResponse response) throws Exception { checkAssertions(response); RegistrationRecord[] records = new RegistrationRecord[response.assertions.length]; checkVersion(response.header.upv); checkServerData(response.header.serverData, records); FinalChallengeParams fcp = getFcp(response); checkFcp(fcp); for (int i = 0; i < records.length; i++) { records[i] = processAssertions(response.assertions[i], records[i]); } return records; } RegistrationResponseProcessing();  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary);  RegistrationResponseProcessing(long serverDataExpiryInMs,
			Notary notary, CertificateValidator certificateValidator); RegistrationRecord[] processResponse(RegistrationResponse response);  }