tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private boolean validateOwnerEmailForOnboard(SSLCertificateOnboardRequest sslCertificateRequest) {
		boolean isValidUser = false;
		ResponseEntity<DirectoryObjects> userResponse = directoryService
				.searchByUPNInGsmAndCorp(sslCertificateRequest.getCertOwnerEmailId());
		Object[] users = null;
		if (userResponse.getStatusCode().equals(HttpStatus.OK)) {
			users = userResponse.getBody().getData().getValues();
			if (!ObjectUtils.isEmpty(users)) {
				isValidUser = true;
			}
		}
		return isValidUser;
	}
/**
	 * Method to validate the owner email
	 * @param sslCertificateRequest
	 * @return
	 */
Method to validate the owner email
@param sslCertificateRequest
@return
Method to validate the owner email @param sslCertificateRequest @return
private boolean validateOwnerEmailForOnboard(SSLCertificateOnboardRequest sslCertificateRequest) {
		boolean isValidUser = false;
		ResponseEntity<DirectoryObjects> userResponse = directoryService
				.searchByUPNInGsmAndCorp(sslCertificateRequest.getCertOwnerEmailId());
		Object[] users = null;
		if (userResponse.getStatusCode().equals(HttpStatus.OK)) {
			users = userResponse.getBody().getData().getValues();
			if (!ObjectUtils.isEmpty(users)) {
				isValidUser = true;
			}
		}
		return isValidUser;
	}
private boolean validateOwnerEmailForOnboard ( SSLCertificateOnboardRequest sslCertificateRequest ) { boolean isValidUser = false ; ResponseEntity < DirectoryObjects > userResponse = directoryService . searchByUPNInGsmAndCorp ( sslCertificateRequest . getCertOwnerEmailId ( ) ) ; Object [ ] users = null ; if ( userResponse . getStatusCode ( ) . equals ( HttpStatus . OK ) ) { users = userResponse . getBody ( ) . getData ( ) . getValues ( ) ; if ( ! ObjectUtils . isEmpty ( users ) ) { isValidUser = true ; } } return isValidUser ; }
Method to validate the owner email
 @param sslCertificateRequest
 @return
Method to validate the owner email @param sslCertificateRequest @return