summaryrefslogtreecommitdiffstats
path: root/auth
diff options
context:
space:
mode:
authorThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-21 13:20:54 +0530
committerThugutla sailakshmi <tsaila10@in.ibm.com>2019-10-21 13:21:05 +0530
commit22768c14fbbfff16c0344d06f80b00d26f24580f (patch)
tree38b4b0670551eaf39c99dd57868c5f2ae09dcd00 /auth
parentbc5f9dec37da59182034c1166a6a9d4150f40847 (diff)
CMService.java-Merge if statement
Issue-ID: AAF-876 Change-Id: If05842f2a727e4f4f756ee782252e9722178fcfd Signed-off-by: Thugutla sailakshmi <tsaila10@in.ibm.com>
Diffstat (limited to 'auth')
-rw-r--r--auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/service/CMService.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/service/CMService.java b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/service/CMService.java
index 88109437..67325034 100644
--- a/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/service/CMService.java
+++ b/auth/auth-certman/src/main/java/org/onap/aaf/auth/cm/service/CMService.java
@@ -366,11 +366,9 @@ public class CMService {
Collection<? extends Certificate> certs = Factory.toX509Certificate(cdd.x509);
for(Iterator<? extends Certificate> iter = certs.iterator(); iter.hasNext();) {
X509Certificate x509 = (X509Certificate)iter.next();
- if(x509.getNotAfter().after(now) && x509.getSubjectDN().getName().contains(cn)) {
- if(++count>max_509s) {
+ if((x509.getNotAfter().after(now) && x509.getSubjectDN().getName().contains(cn))&&(++count>max_509s)) {
break;
- }
- }
+ }
}
}
if(count>max_509s) {