diff --git a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java index 4b48537e..30d11444 100644 --- a/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java +++ b/HIRS_AttestationCAPortal/src/main/java/hirs/attestationca/portal/page/utils/CertificateStringMapBuilder.java @@ -466,8 +466,8 @@ public final class CertificateStringMapBuilder { */ private static HashMap convertStringToHash(final String str) { HashMap map = new HashMap<>(); - String name = str.substring(0, str.indexOf('{')).trim(); - String data = str.trim().substring(str.trim().indexOf('{') + 1, + String name = str.substring(0, str.indexOf('(')).trim(); + String data = str.trim().substring(str.trim().indexOf('(') + 1, str.trim().length() - 1); // Separate key and value and parse the key for (String pair : data.split(",")) {