當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。