/** * Update the security question * * @param securityQuestions */ public void updateUserSequeiryQuestions(UserIdentityClaimDTO[] securityQuestions) { for (UserIdentityClaimDTO dto : securityQuestions) { // if the uri and the value is not null and if its only a security // question claim then update if (dto.getClaimUri() != null && dto.getClaimValue() != null && dto.getClaimUri().contains(UserCoreConstants.ClaimTypeURIs.CHALLENGE_QUESTION_URI)) { userIdentityDataMap.put(dto.getClaimUri(), dto.getClaimValue()); } } }
/** @param userIdentityRecoveryData */ public void updateUserIdentityRecoveryData(UserIdentityClaimDTO[] userIdentityRecoveryData) { for (UserIdentityClaimDTO dto : userIdentityRecoveryData) { // if the uri and the value is not null and if not a security // question or an identity claim if (dto.getClaimUri() != null && dto.getClaimValue() != null && !dto.getClaimUri().contains(UserCoreConstants.ClaimTypeURIs.CHALLENGE_QUESTION_URI) && !dto.getClaimUri().contains(UserCoreConstants.ClaimTypeURIs.IDENTITY_CLAIM_URI)) { userIdentityDataMap.put(dto.getClaimUri(), dto.getClaimValue()); } } }