Skip to content

Commit

Permalink
MOSIP-32461 code changes
Browse files Browse the repository at this point in the history
Signed-off-by: Sowmya Ujjappa Banakar <[email protected]>
  • Loading branch information
Sowmya Ujjappa Banakar committed Jun 17, 2024
1 parent 3b5744e commit 6a75897
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
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

0 comments on commit 6a75897

Please sign in to comment.