本文整理汇总了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 );
}