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 #1887

Merged
merged 4 commits into from
Jun 17, 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 @@ -76,15 +76,7 @@ public void validateSignature(String id, String process, BiometricRecord biometr
List<BIR> birs = biometricRecord.getSegments();

for (BIR bir : birs) {
Map<String, String> othersInfo = null;
regProcLogger.info(LoggerFileConstant.SESSIONID.toString(), LoggerFileConstant.REGISTRATIONID.toString(),
id,
bir.toString());
regProcLogger.info(LoggerFileConstant.SESSIONID.toString(), LoggerFileConstant.REGISTRATIONID.toString(),
id, bir.getOthers());
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
HashMap<String, String> othersInfo = bir.getOthers();
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 @@ -423,10 +423,7 @@ private Map<String, String> getQualityTags(List<BIR> birs) throws BiometricExcep
for (BIR bir : birs) {

if (bir.getOthers() != null) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}
HashMap<String, String> othersInfo = bir.getOthers();
boolean exceptionValue = false;
if(othersInfo!=null) {
for (Map.Entry<String, String> other : othersInfo.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,7 @@ private void getExceptionAndBiometricInfo(BiometricRecord biometricRecord, Anony

List<BIR> birs = biometricRecord.getSegments();
for (BIR bir : birs) {
Map<String, String> othersInfo = null;
if (bir.getOthers() instanceof HashMap<String, String> othersInfo1) {
othersInfo = othersInfo1;
}

HashMap<String, String> othersInfo = bir.getOthers();
if (othersInfo == null) {
continue;
}
Expand Down
Loading