Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOSIP-32461 code changes #1883

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public void validateSignature(String id, String process, BiometricRecord biometr
List<BIR> birs = biometricRecord.getSegments();
for (BIR bir : birs) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
if (othersInfo == null) {
throw new BiometricSignatureValidationException("Others value is null inside BIR");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ private Map<String, String> getQualityTags(List<BIR> birs) throws BiometricExcep

if (bir.getOthers() != null) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
boolean exceptionValue = false;
if(othersInfo!=null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

Expand Down Expand Up @@ -278,8 +279,8 @@ private void getExceptionAndBiometricInfo(BiometricRecord biometricRecord, Anony
List<BIR> birs = biometricRecord.getSegments();
for (BIR bir : birs) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof Map<String, String>) {
othersInfo = (Map<String, String>) bir.getOthers();
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}

if (othersInfo == null) {
Expand Down
Loading