tvaultapi/src/main/java/com/tmobile/cso/vault/api/service/SSLCertificateService.java
private CertResponse enrollCertificate(CertManagerLogin certManagerLogin, int entityId) throws Exception {
        String enrollEndPoint = "/certmanager/enroll";
        String targetSystemEndPoint = enrollUrl.replace(SSLCertificateConstants.ENTITY_ID, String.valueOf(entityId));
        log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder()
        		.put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
        		.put(LogMessage.ACTION, "enrollCertificate")
        		.put(LogMessage.MESSAGE, "Trying to enroll certificate")
				.put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL))
        		.build()));
        return reqProcessor.processCert(enrollEndPoint, "", certManagerLogin.getAccess_token(), getCertmanagerEndPoint(targetSystemEndPoint));
    }
/**
     * This method will be responsible to create certificate
     * @param certManagerLogin
     * @param entityId
     * @return
     * @throws Exception
     */
This method will be responsible to create certificate
@param certManagerLogin
@param entityId
@return
@throws Exception
This method will be responsible to create certificate @param certManagerLogin @param entityId @return @throws Exception
private CertResponse enrollCertificate(CertManagerLogin certManagerLogin, int entityId) throws Exception {
        String enrollEndPoint = "/certmanager/enroll";
        String targetSystemEndPoint = enrollUrl.replace(SSLCertificateConstants.ENTITY_ID, String.valueOf(entityId));
        log.debug(JSONUtil.getJSON(ImmutableMap.<String, String>builder()
        		.put(LogMessage.USER, ThreadLocalContext.getCurrentMap().get(LogMessage.USER))
        		.put(LogMessage.ACTION, "enrollCertificate")
        		.put(LogMessage.MESSAGE, "Trying to enroll certificate")
				.put(LogMessage.APIURL, ThreadLocalContext.getCurrentMap().get(LogMessage.APIURL))
        		.build()));
        return reqProcessor.processCert(enrollEndPoint, "", certManagerLogin.getAccess_token(), getCertmanagerEndPoint(targetSystemEndPoint));
    }
private CertResponse enrollCertificate ( CertManagerLogin certManagerLogin , int entityId ) throws Exception { String enrollEndPoint = "/certmanager/enroll" ; String targetSystemEndPoint = enrollUrl . replace ( SSLCertificateConstants . ENTITY_ID , String . valueOf ( entityId ) ) ; log . debug ( JSONUtil . getJSON ( ImmutableMap . < String , String > builder ( ) . put ( LogMessage . USER , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . USER ) ) . put ( LogMessage . ACTION , "enrollCertificate" ) . put ( LogMessage . MESSAGE , "Trying to enroll certificate" ) . put ( LogMessage . APIURL , ThreadLocalContext . getCurrentMap ( ) . get ( LogMessage . APIURL ) ) . build ( ) ) ) ; return reqProcessor . processCert ( enrollEndPoint , "" , certManagerLogin . getAccess_token ( ) , getCertmanagerEndPoint ( targetSystemEndPoint ) ) ; }
This method will be responsible to create certificate
 @param certManagerLogin
 @param entityId
 @return
 @throws Exception
This method will be responsible to create certificate @param certManagerLogin @param entityId @return @throws Exception