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