tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean populateCertOwnerEmaild(SSLCertificateRequest sslCertificateRequest, UserDetails userDetails) {
		boolean isvalid = true;
		if (StringUtils.isEmpty(sslCertificateRequest.getCertOwnerNtid())) {
			sslCertificateRequest.setCertOwnerNtid(userDetails.getUsername());
		}

		if (StringUtils.isEmpty(sslCertificateRequest.getCertOwnerEmailId())) {
			isvalid = false;
			DirectoryUser directoryUser = getUserDetails(sslCertificateRequest.getCertOwnerNtid());
			if (directoryUser != null && !ObjectUtils.isEmpty(directoryUser)) {
				sslCertificateRequest.setCertOwnerEmailId(directoryUser.getUserEmail());
				isvalid = true;
			}
		}
		return isvalid;
	}
/**
	 * This method will be used to update the owner email id
	 *
	 * @param sslCertificateRequest
	 * @return
	 */
This method will be used to update the owner email id
@param sslCertificateRequest
@return
This method will be used to update the owner email id @param sslCertificateRequest @return
private boolean populateCertOwnerEmaild(SSLCertificateRequest sslCertificateRequest, UserDetails userDetails) {
		boolean isvalid = true;
		if (StringUtils.isEmpty(sslCertificateRequest.getCertOwnerNtid())) {
			sslCertificateRequest.setCertOwnerNtid(userDetails.getUsername());
		}
		if (StringUtils.isEmpty(sslCertificateRequest.getCertOwnerEmailId())) {
			isvalid = false;
			DirectoryUser directoryUser = getUserDetails(sslCertificateRequest.getCertOwnerNtid());
			if (directoryUser != null && !ObjectUtils.isEmpty(directoryUser)) {
				sslCertificateRequest.setCertOwnerEmailId(directoryUser.getUserEmail());
				isvalid = true;
			}
		}
		return isvalid;
	}
private boolean populateCertOwnerEmaild ( SSLCertificateRequest sslCertificateRequest , UserDetails userDetails ) { boolean isvalid = true ; if ( StringUtils . isEmpty ( sslCertificateRequest . getCertOwnerNtid ( ) ) ) { sslCertificateRequest . setCertOwnerNtid ( userDetails . getUsername ( ) ) ; } if ( StringUtils . isEmpty ( sslCertificateRequest . getCertOwnerEmailId ( ) ) ) { isvalid = false ; DirectoryUser directoryUser = getUserDetails ( sslCertificateRequest . getCertOwnerNtid ( ) ) ; if ( directoryUser != null && ! ObjectUtils . isEmpty ( directoryUser ) ) { sslCertificateRequest . setCertOwnerEmailId ( directoryUser . getUserEmail ( ) ) ; isvalid = true ; } } return isvalid ; }
This method will be used to update the owner email id
 @param sslCertificateRequest
 @return
This method will be used to update the owner email id @param sslCertificateRequest @return