本文整理匯總了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() );
}
示例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;
}
示例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 );
}
示例4: ImportKeystoreMojo
import org.codehaus.mojo.keytool.requests.KeyToolImportKeystoreRequest; //導入依賴的package包/類
/**
* Default contructor.
*/
public ImportKeystoreMojo()
{
super( KeyToolImportKeystoreRequest.class );
}