public interface KeyToolCommandLineBuilder
KeyToolRequest
.Modifier and Type | Method and Description |
---|---|
org.apache.maven.shared.utils.cli.Commandline |
build(KeyToolRequest request)
Build the commandline given the incoming keytool request.
|
void |
checkRequiredState()
Checks that builder is ready to produce commandline from incoming request.
|
void |
checkSupportedRequest(KeyToolRequest request)
Checks that builder can build the given type of request.
|
void |
setKeyToolFile(String keyToolFile)
Sets the keytool executable location.
|
void |
setLogger(org.codehaus.plexus.logging.Logger logger)
Sets the logger used by the builder.
|
<R extends KeyToolRequest> |
supportRequestType(Class<R> requestType)
Test if given request type is supported by the underlined keytool implementation.
|
static final String ROLE
<R extends KeyToolRequest> boolean supportRequestType(Class<R> requestType)
UnsupportedKeyToolRequestException
in method build(KeyToolRequest)
R
- type of request to testrequestType
- type of request to testtrue
if can create a such request type, false
otherwise.org.apache.maven.shared.utils.cli.Commandline build(KeyToolRequest request) throws CommandLineConfigurationException, UnsupportedKeyToolRequestException
request
- keytool requestCommandLineConfigurationException
- if could not find keytool executableUnsupportedKeyToolRequestException
void setLogger(org.codehaus.plexus.logging.Logger logger)
logger
- logger to use in this buildervoid setKeyToolFile(String keyToolFile)
keyToolFile
- keytool executable location to use in this buildervoid checkRequiredState()
void checkSupportedRequest(KeyToolRequest request) throws UnsupportedKeyToolRequestException
request
- request to testUnsupportedKeyToolRequestException
Copyright © 2005–2017 MojoHaus. All rights reserved.