-
public class IdentityResponseBuilderClass to facilitate creation of response intents for passing result data of Identity workflows back to CommCare
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringREGISTRATIONpublic final static StringIDENTIFICATIONpublic final static StringVERIFICATIONpublic final static StringREGISTRATION_DUPLICATES
-
Method Summary
Modifier and Type Method Description static IdentityResponseBuilderregistrationResponse(String guid)Creates response for result of a new Identity Registration static IdentityResponseBuilderregistrationResponse(String guid, Map<BiometricIdentifier, Array<byte>> templates)Creates response for result of a new Identity Registration with biometric templates static IdentityResponseBuilderidentificationResponse(ArrayList<IdentificationMatch> identificationMatches)Creates response for result of a identification workflow static IdentityResponseBuilderverificationResponse(String guid, MatchResult matchResult)Creates response for result of a verification workflow static IdentityResponseBuilderregistrationResponse(ArrayList<IdentificationMatch> identificationMatches)Creates response with a list of duplicates identified in the registration workflow IdentityResponseBuildersetIdentificationMatches(ArrayList<IdentificationMatch> identificationMatches)Adds identifications to a response. Intentbuild()voidfinalizeResponse(Activity activity)-
-
Method Detail
-
registrationResponse
static IdentityResponseBuilder registrationResponse(String guid)
Creates response for result of a new Identity Registration
- Parameters:
guid- Global unique id generated as part of the new registration in the Identity Provider
-
registrationResponse
static IdentityResponseBuilder registrationResponse(String guid, Map<BiometricIdentifier, Array<byte>> templates)
Creates response for result of a new Identity Registration with biometric templates
- Parameters:
templates- data captured as part of the new registration in the Identity Provider
-
identificationResponse
static IdentityResponseBuilder identificationResponse(ArrayList<IdentificationMatch> identificationMatches)
Creates response for result of a identification workflow
- Parameters:
identificationMatches- list of matches to be passed back to CommCare
-
verificationResponse
static IdentityResponseBuilder verificationResponse(String guid, MatchResult matchResult)
Creates response for result of a verification workflow
- Parameters:
guid- Identity Provider's GUID for the beneficiary the verification was performedmatchResult- Result of the verification process
-
registrationResponse
static IdentityResponseBuilder registrationResponse(ArrayList<IdentificationMatch> identificationMatches)
Creates response with a list of duplicates identified in the registration workflow
-
setIdentificationMatches
IdentityResponseBuilder setIdentificationMatches(ArrayList<IdentificationMatch> identificationMatches)
Adds identifications to a response. This can be used in a registration workflow to pass back possible duplicatesfor a new registration
- Parameters:
identificationMatches- list of matches against a biometric
-
finalizeResponse
void finalizeResponse(Activity activity)
-
-
-
-