tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean saveApplicationDetailsForOldCerts(List<String> certList, String certType, String token) {
		 boolean isSaved = true;
		 String pathStr= "";
	   		String endPoint = "";
	   		Response response = new Response();
	   		JsonParser jsonParser = new JsonParser();
	   		JsonArray responseArray = new JsonArray();
	   		JsonObject metadataJsonObj=new JsonObject();
		 String metaDataPath = (certType.equalsIgnoreCase(SSLCertificateConstants.INTERNAL))?
	                SSLCertificateConstants.SSL_CERT_PATH :SSLCertificateConstants.SSL_EXTERNAL_CERT_PATH;
		 for (int i = 0; i < certList.size(); i++) {
			  endPoint = certList.get(i).replaceAll(CERTNAMEREGEX, "");
				 pathStr = metaDataPath + "/" + endPoint;
				 response = reqProcessor.process("/sslcert", "{\"path\":\"" + pathStr + "\"}", token);
				if (HttpStatus.OK.equals(response.getHttpstatus())) {
					certificateMetadataForApplicationDetails(response.getResponse(), token, "update");
				}
			}
		 return isSaved;
	 }
/**
	  * iterate the internal/external cert list and save the app details
	  * @param certList
	  * @param certType
	  * @param token
	  * @return
	  */
iterate the internal/external cert list and save the app details
@param certList
@param certType
@param token
@return
iterate the internal / external cert list and save the app details @param certList @param certType @param token @return
private boolean saveApplicationDetailsForOldCerts(List<String> certList, String certType, String token) {
		 boolean isSaved = true;
		 String pathStr= "";
	   		String endPoint = "";
	   		Response response = new Response();
	   		JsonParser jsonParser = new JsonParser();
	   		JsonArray responseArray = new JsonArray();
	   		JsonObject metadataJsonObj=new JsonObject();
		 String metaDataPath = (certType.equalsIgnoreCase(SSLCertificateConstants.INTERNAL))?
	                SSLCertificateConstants.SSL_CERT_PATH :SSLCertificateConstants.SSL_EXTERNAL_CERT_PATH;
		 for (int i = 0; i < certList.size(); i++) {
			  endPoint = certList.get(i).replaceAll(CERTNAMEREGEX, "");
				 pathStr = metaDataPath + "/" + endPoint;
				 response = reqProcessor.process("/sslcert", "{\"path\":\"" + pathStr + "\"}", token);
				if (HttpStatus.OK.equals(response.getHttpstatus())) {
					certificateMetadataForApplicationDetails(response.getResponse(), token, "update");
				}
			}
		 return isSaved;
	 }
private boolean saveApplicationDetailsForOldCerts ( List < String > certList , String certType , String token ) { boolean isSaved = true ; String pathStr = "" ; String endPoint = "" ; Response response = new Response ( ) ; JsonParser jsonParser = new JsonParser ( ) ; JsonArray responseArray = new JsonArray ( ) ; JsonObject metadataJsonObj = new JsonObject ( ) ; String metaDataPath = ( certType . equalsIgnoreCase ( SSLCertificateConstants . INTERNAL ) ) ? SSLCertificateConstants . SSL_CERT_PATH : SSLCertificateConstants . SSL_EXTERNAL_CERT_PATH ; for ( int i = 0 ; i < certList . size ( ) ; i ++ ) { endPoint = certList . get ( i ) . replaceAll ( CERTNAMEREGEX , "" ) ; pathStr = metaDataPath + "/" + endPoint ; response = reqProcessor . process ( "/sslcert" , "{\"path\":\"" + pathStr + "\"}" , token ) ; if ( HttpStatus . OK . equals ( response . getHttpstatus ( ) ) ) { certificateMetadataForApplicationDetails ( response . getResponse ( ) , token , "update" ) ; } } return isSaved ; }
iterate the internal/external cert list and save the app details
 @param certList
 @param certType
 @param token
 @return
iterate the internal / external cert list and save the app details @param certList @param certType @param token @return