本文整理匯總了Java中org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest類的典型用法代碼示例。如果您正苦於以下問題:Java KeyToolImportCertificateRequest類的具體用法?Java KeyToolImportCertificateRequest怎麽用?Java KeyToolImportCertificateRequest使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
KeyToolImportCertificateRequest類屬於org.codehaus.mojo.keytool.requests包,在下文中一共展示了KeyToolImportCertificateRequest類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: build
import org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest; //導入依賴的package包/類
/**
* Fill the commandline client for the given {@code request}.
*
* @param request the keytool request to consume
* @param cli the commandline client to prepare
*/
protected void build( KeyToolImportCertificateRequest request, Commandline cli )
{
addKeytoolCommandAndDefaultoptions( cli, "-import", request );
addArgIfTrue( cli, "-noprompt", request.isNoprompt() );
addArgIfTrue( cli, "-trustcacerts", request.isTrustcacerts() );
addArgIfNotEmpty( cli, "-file", request.getFile() );
addArgIfNotEmpty( cli, "-keypass", request.getKeypass() );
}
示例2: createKeytoolRequest
import org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest; //導入依賴的package包/類
/**
* {@inheritDoc}
*/
@Override
protected KeyToolImportCertificateRequest createKeytoolRequest()
{
KeyToolImportCertificateRequest request = super.createKeytoolRequest();
request.setKeypass( this.keypass );
request.setFile( this.file );
request.setNoprompt( this.noprompt );
request.setTrustcacerts( this.trustcacerts );
return request;
}
示例3: build
import org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest; //導入依賴的package包/類
/**
* Fill the commandline client for the given {@code request}.
*
* @param request the keytool request to consume
* @param cli the commandline client to prepare
*/
protected void build( KeyToolImportCertificateRequest request, Commandline cli )
{
addKeytoolCommandAndDefaultoptions( cli, "-importcert", request );
addArgIfTrue( cli, "-noprompt", request.isNoprompt() );
addArgIfTrue( cli, "-trustcacerts", request.isTrustcacerts() );
addArgIfNotEmpty( cli, "-file", request.getFile() );
addArgIfNotEmpty( cli, "-keypass", request.getKeypass() );
}
示例4: ImportCertificateMojo
import org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest; //導入依賴的package包/類
/**
* Default contructor.
*/
public ImportCertificateMojo()
{
super( KeyToolImportCertificateRequest.class );
}