tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private List<String> geMatchCertificates(JsonArray jsonArray, String searchText) {
		List<String> list = new ArrayList<>();
		if (!ObjectUtils.isEmpty(jsonArray)) {
		    if (!StringUtils.isEmpty(searchText)) {
				for (int i = 0; i < jsonArray.size(); i++) {
					if (jsonArray.get(i).toString().contains(searchText)) {
						list.add(jsonArray.get(i).getAsString());
					}
				}
			} else {
				for (int i = 0; i < jsonArray.size(); i++) {
					list.add(jsonArray.get(i).getAsString());
				}
			}
		}
		return list;
	}
/**
   	 * Get the certificate names matches the search keyword
   	 * @param jsonArray
   	 * @param searchText
   	 * @return
   	 */
Get the certificate names matches the search keyword
@param jsonArray
@param searchText
@return
Get the certificate names matches the search keyword @param jsonArray @param searchText @return
private List<String> geMatchCertificates(JsonArray jsonArray, String searchText) {
		List<String> list = new ArrayList<>();
		if (!ObjectUtils.isEmpty(jsonArray)) {
		    if (!StringUtils.isEmpty(searchText)) {
				for (int i = 0; i < jsonArray.size(); i++) {
					if (jsonArray.get(i).toString().contains(searchText)) {
						list.add(jsonArray.get(i).getAsString());
					}
				}
			} else {
				for (int i = 0; i < jsonArray.size(); i++) {
					list.add(jsonArray.get(i).getAsString());
				}
			}
		}
		return list;
	}
private List < String > geMatchCertificates ( JsonArray jsonArray , String searchText ) { List < String > list = new ArrayList < > ( ) ; if ( ! ObjectUtils . isEmpty ( jsonArray ) ) { if ( ! StringUtils . isEmpty ( searchText ) ) { for ( int i = 0 ; i < jsonArray . size ( ) ; i ++ ) { if ( jsonArray . get ( i ) . toString ( ) . contains ( searchText ) ) { list . add ( jsonArray . get ( i ) . getAsString ( ) ) ; } } } else { for ( int i = 0 ; i < jsonArray . size ( ) ; i ++ ) { list . add ( jsonArray . get ( i ) . getAsString ( ) ) ; } } } return list ; }
Get the certificate names matches the search keyword
 @param jsonArray
 @param searchText
 @return
Get the certificate names matches the search keyword @param jsonArray @param searchText @return