本文整理汇总了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 );
}