@Component(role=KeyToolCommandLineBuilder.class, hint="default") public class DefaultKeyToolCommandLineBuilder extends AbstractKeyToolCommandLineBuilder
KeyToolRequest
.ROLE
Constructor and Description |
---|
DefaultKeyToolCommandLineBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
build(KeyToolChangeAliasRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolChangeKeyPasswordRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolChangeStorePasswordRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolDeleteRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolExportCertificateRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolGenerateCertificateRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolGenerateCertificateRequestRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolGenerateKeyPairRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolGenerateSecretKeyRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolImportCertificateRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolImportKeystoreRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolListRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolPrintCertificateRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolPrintCertificateRequestRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
protected void |
build(KeyToolPrintCRLFileRequest request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request . |
org.apache.maven.shared.utils.cli.Commandline |
build(KeyToolRequest request)
Build the commandline given the incoming keytool request.
|
<R extends KeyToolRequest> |
supportRequestType(Class<R> requestType)
Test if given request type is supported by the underlined keytool implementation.
|
addArg, addArg, addArgIfNotEmpty, addArgIfNotEmpty, addArgIfTrue, addKeytoolCommandAndDefaultoptions, buildWithKeyStoreAndAliasParameters, buildWithKeyStoreParameters, checkRequiredState, checkSupportedRequest, getKeyToolFile, getLogger, setKeyToolFile, setLogger
public <R extends KeyToolRequest> boolean supportRequestType(Class<R> requestType)
UnsupportedKeyToolRequestException
in method KeyToolCommandLineBuilder.build(KeyToolRequest)
R
- type of request to testrequestType
- type of request to testtrue
if can create a such request type, false
otherwise.public org.apache.maven.shared.utils.cli.Commandline build(KeyToolRequest request) throws CommandLineConfigurationException, UnsupportedKeyToolRequestException
request
- keytool requestCommandLineConfigurationException
- if could not find keytool executableUnsupportedKeyToolRequestException
protected void build(KeyToolChangeAliasRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolChangeKeyPasswordRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolChangeStorePasswordRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolDeleteRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolExportCertificateRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolGenerateCertificateRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolGenerateCertificateRequestRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolGenerateKeyPairRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolGenerateSecretKeyRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolImportCertificateRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolImportKeystoreRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolListRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolPrintCertificateRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolPrintCertificateRequestRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareprotected void build(KeyToolPrintCRLFileRequest request, org.apache.maven.shared.utils.cli.Commandline cli)
request
.request
- the keytool request to consumecli
- the commandline client to prepareCopyright © 2005–2019 MojoHaus. All rights reserved.