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


Java KeyToolImportKeystoreRequest类代码示例

本文整理汇总了Java中org.codehaus.mojo.keytool.requests.KeyToolImportKeystoreRequest的典型用法代码示例。如果您正苦于以下问题:Java KeyToolImportKeystoreRequest类的具体用法?Java KeyToolImportKeystoreRequest怎么用?Java KeyToolImportKeystoreRequest使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


KeyToolImportKeystoreRequest类属于org.codehaus.mojo.keytool.requests包,在下文中一共展示了KeyToolImportKeystoreRequest类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: build

import org.codehaus.mojo.keytool.requests.KeyToolImportKeystoreRequest; //导入依赖的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( KeyToolImportKeystoreRequest request, Commandline cli )
{
    addKeytoolCommandAndDefaultoptions( cli, "-importkeystore", request );
    addArgIfTrue( cli, "-noprompt", request.isNoprompt() );
    addArgIfNotEmpty( cli, "-srcprotected", request.isSrcprotected() ? Boolean.TRUE.toString() : "" );
    addArgIfNotEmpty( cli, "-srckeystore", request.getSrckeystore() );
    addArgIfNotEmpty( cli, "-destkeystore", request.getDestkeystore() );
    addArgIfNotEmpty( cli, "-srcstoretype", request.getSrcstoretype() );
    addArgIfNotEmpty( cli, "-deststoretype", request.getDeststoretype() );
    addArgIfNotEmpty( cli, "-srcstorepass", request.getSrcstorepass() );
    addArgIfNotEmpty( cli, "-deststorepass", request.getDeststorepass() );
    addArgIfNotEmpty( cli, "-srcprovidername", request.getSrcprovidername() );
    addArgIfNotEmpty( cli, "-destprovidername", request.getDestprovidername() );
    addArgIfNotEmpty( cli, "-srcalias", request.getSrcalias() );
    addArgIfNotEmpty( cli, "-destalias", request.getDestalias() );
    addArgIfNotEmpty( cli, "-srckeypass", request.getSrckeypass() );
    addArgIfNotEmpty( cli, "-destkeypass", request.getDestkeypass() );
    addArgIfNotEmpty( cli, "-providerclass", request.getProviderclass() );
    addArgIfNotEmpty( cli, "-providerarg", request.getProviderarg() );
    addArgIfNotEmpty( cli, "-providerpath", request.getProviderpath() );
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:28,代码来源:DefaultKeyToolCommandLineBuilder.java

示例2: createKeytoolRequest

import org.codehaus.mojo.keytool.requests.KeyToolImportKeystoreRequest; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
protected KeyToolImportKeystoreRequest createKeytoolRequest()
{
    KeyToolImportKeystoreRequest request = super.createKeytoolRequest();

    request.setSrckeystore( this.srckeystore );
    request.setDestkeystore( this.destkeystore );
    request.setSrcstoretype( this.srcstoretype );
    request.setDeststoretype( this.deststoretype );
    request.setSrcstorepass( this.srcstorepass );
    request.setDeststorepass( this.deststorepass );
    request.setSrcprotected( this.srcprotected );
    request.setSrcprovidername( this.srcprovidername );
    request.setDestprovidername( this.destprovidername );
    request.setSrcalias( this.srcalias );
    request.setDestalias( this.destalias );
    request.setSrckeypass( this.srckeypass );
    request.setDestkeypass( this.destkeypass );
    request.setNoprompt( this.noprompt );
    request.setProviderclass( this.providerclass );
    request.setProviderarg( this.providerarg );
    request.setProviderpath( this.providerpath );
    return request;
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:28,代码来源:ImportKeystoreMojo.java

示例3: DefaultKeyToolCommandLineBuilder

import org.codehaus.mojo.keytool.requests.KeyToolImportKeystoreRequest; //导入依赖的package包/类
public DefaultKeyToolCommandLineBuilder()
{
    this.unsupportedRequestTypes = new HashSet<Class<? extends KeyToolRequest>>();
    this.unsupportedRequestTypes.add( KeyToolImportKeystoreRequest.class );
    this.unsupportedRequestTypes.add( KeyToolGenerateCertificateRequest.class );
    this.unsupportedRequestTypes.add( KeyToolPrintCertificateRequestRequest.class );
    this.unsupportedRequestTypes.add( KeyToolPrintCRLFileRequest.class );
}
 
开发者ID:mojohaus,项目名称:keytool,代码行数:9,代码来源:DefaultKeyToolCommandLineBuilder.java

示例4: ImportKeystoreMojo

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


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