tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean validateCertficateName(String certName) {
		boolean isValid = true;
		if (certName.contains(" ") || (certName.endsWith(certificateNameTailText)) || (certName.contains(".-"))
				|| (certName.contains("-.")) || (certName.contains("..")) || (certName.endsWith("."))
                || certName.startsWith(".")) {
			isValid = false;
		}
		return isValid;
	}
/**
	 * Method to validate the certificate name
	 *
	 * @param certName
	 * @param isAdmin
     * @return
	 */
Method to validate the certificate name
@param certName
@param isAdmin
@return
Method to validate the certificate name @param certName @param isAdmin @return
private boolean validateCertficateName(String certName) {
		boolean isValid = true;
		if (certName.contains(" ") || (certName.endsWith(certificateNameTailText)) || (certName.contains(".-"))
				|| (certName.contains("-.")) || (certName.contains("..")) || (certName.endsWith("."))
                || certName.startsWith(".")) {
			isValid = false;
		}
		return isValid;
	}
private boolean validateCertficateName ( String certName ) { boolean isValid = true ; if ( certName . contains ( " " ) || ( certName . endsWith ( certificateNameTailText ) ) || ( certName . contains ( ".-" ) ) || ( certName . contains ( "-." ) ) || ( certName . contains ( ".." ) ) || ( certName . endsWith ( "." ) ) || certName . startsWith ( "." ) ) { isValid = false ; } return isValid ; }
Method to validate the certificate name
 @param certName
 @param isAdmin
 @return
Method to validate the certificate name @param certName @param isAdmin @return