本文整理汇总了Java中org.codehaus.mojo.keytool.requests.KeyToolGenerateCertificateRequestRequest类的典型用法代码示例。如果您正苦于以下问题:Java KeyToolGenerateCertificateRequestRequest类的具体用法?Java KeyToolGenerateCertificateRequestRequest怎么用?Java KeyToolGenerateCertificateRequestRequest使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
KeyToolGenerateCertificateRequestRequest类属于org.codehaus.mojo.keytool.requests包,在下文中一共展示了KeyToolGenerateCertificateRequestRequest类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: build
import org.codehaus.mojo.keytool.requests.KeyToolGenerateCertificateRequestRequest; //导入依赖的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( KeyToolGenerateCertificateRequestRequest request, Commandline cli )
{
addKeytoolCommandAndDefaultoptions( cli, "-certreq", request );
addArgIfNotEmpty( cli, "-sigalg", request.getSigalg() );
addArgIfNotEmpty( cli, "-file", request.getFile() );
addArgIfNotEmpty( cli, "-keypass", request.getKeypass() );
addArgIfNotEmpty( cli, "-dname", request.getDname() );
}
示例2: createKeytoolRequest
import org.codehaus.mojo.keytool.requests.KeyToolGenerateCertificateRequestRequest; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected KeyToolGenerateCertificateRequestRequest createKeytoolRequest()
{
KeyToolGenerateCertificateRequestRequest request = super.createKeytoolRequest();
request.setSigalg( this.sigalg );
request.setDname( this.dname );
request.setFile( this.file );
request.setKeypass( this.keypass );
return request;
}
示例3: GenerateCertificateRequestMojo
import org.codehaus.mojo.keytool.requests.KeyToolGenerateCertificateRequestRequest; //导入依赖的package包/类
/**
* Default contructor.
*/
public GenerateCertificateRequestMojo()
{
super( KeyToolGenerateCertificateRequestRequest.class );
}