From ac836d0f27919da9525f5625aaef51a7b8b228ca Mon Sep 17 00:00:00 2001 From: Instrumental Date: Fri, 6 Apr 2018 05:27:41 -0500 Subject: Service required changed startup Issue-ID: AAF-211 Change-Id: Id4101ca0e59c5a2a3deaf703dc8fdd07183f3b4d Signed-off-by: Instrumental --- cadi/core/src/main/java/org/onap/aaf/cadi/taf/cert/X509Taf.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cadi/core/src') diff --git a/cadi/core/src/main/java/org/onap/aaf/cadi/taf/cert/X509Taf.java b/cadi/core/src/main/java/org/onap/aaf/cadi/taf/cert/X509Taf.java index b5ed7ad1..4411a859 100644 --- a/cadi/core/src/main/java/org/onap/aaf/cadi/taf/cert/X509Taf.java +++ b/cadi/core/src/main/java/org/onap/aaf/cadi/taf/cert/X509Taf.java @@ -130,7 +130,8 @@ public class X509Taf implements HttpTaf { if(certarr!=null && certarr.length>0) { si.checkClientTrusted(certarr); // Note: If the Issuer is not in the TrustStore, it's not added to the Cert list - if(cadiIssuers.contains(certarr[0].getIssuerDN().toString())) { + String issuer = certarr[0].getIssuerDN().toString(); + if(cadiIssuers.contains(issuer)) { String subject = certarr[0].getSubjectDN().getName(); // avoiding extra object creation, since this is validated EVERY transaction with a Cert int at = subject.indexOf('@'); -- cgit 1.2.3-korg