Step 3

​Processing of ID-Rights success response is explained in this step.

​Topics found on this page:

Receive Get Signature Data response

Once ID-Rights service completes the processing of Get signature data message, it sends a response in XML format back to ID-Rights client API.  The details from the response can be easily retrieved using the java objects available in ID-Rights client API.

Sample code to retrieve signature data from ID-Rights service response is provided below (detailed code is available in demo app source files).


 //B2BMessage response = facade.getSPInfoByOrg(b2bMessage); (from step 2)
 List<CompanyRole> companyRoles = response.getTrustB2BMessage().getGetSPInfoByOrgResponse().getCompanyRoles().getCompanyRole();

 List<InterpretedSigAndProcInfoTypeDef> signatureList = response.getTrustB2BMessage().getGetSPInfoByOrgResponse().getInterpretedSPInfoList().getInterpretedSPInfo();

 List<InterpretedSigAndProcInfoTypeDef> signatures = new LinkedList<InterpretedSigAndProcInfoTypeDef>();

 for (InterpretedSigAndProcInfoTypeDef sig : signatureList) {
	if ("Signature".equals(sig.getSignatureType().value())) {
       //Get only Signature data from list 
		signatures.add(sig);
	}
 }

Refer to get signature data section for more details,  Get signature data.

Receive Verify Signature Data response

Once ID-Rights service completes the processing of Verify signature data message, it sends a response in XML format back to ID-Rights client API.  The details from the response can be easily retrieved using the java objects available in ID-Rights client API.

Sample code to verify signature data from ID-Rights service response is provided below (detailed code is available in demo app source files).


 //B2BMessage response = facade.verifySignatureAndProcuration(b2bMessage); (from step 2)

 String signatureType = response.getTrustB2BMessage().getVerifySignatureAndProcurationResponse().getSignatureType().value();

 String signatureConclusion = response.getTrustB2BMessage().getVerifySignatureAndProcurationResponse().getSignatureConclusion().value();

Refer to verify signature data section for more details.

Test data

Refer to Test data page for test organization numbers and personal numbers. 

Suggested further steps

Topics to consider:

  1. Go to Overview
  2. Go to Web service functions

Own test and production setup

This get started guide and the ID-Rights demo app are based on an open test setup. To get your own test and production setup, use the Contact us form.