当前位置: 首页>>代码示例>>Java>>正文


Java KeyToolImportCertificateRequest类代码示例

本文整理汇总了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() );
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:15,代码来源:DefaultKeyToolCommandLineBuilder.java

示例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;
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:15,代码来源:ImportCertificateMojo.java

示例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() );
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:15,代码来源:DefaultKeyToolCommandLineBuilder.java

示例4: ImportCertificateMojo

import org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest; //导入依赖的package包/类
/**
 * Default contructor.
 */
public ImportCertificateMojo()
{
    super( KeyToolImportCertificateRequest.class );
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:8,代码来源:ImportCertificateMojo.java


注:本文中的org.codehaus.mojo.keytool.requests.KeyToolImportCertificateRequest类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。