Package org.codehaus.mojo.keytool
Class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters>
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.codehaus.mojo.keytool.AbstractKeyToolMojo
-
- org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
-
- org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo<R>
-
- Type Parameters:
R
- generic type of request used by the mojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo
,ChangeStorePasswordMojo
public abstract class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters> extends AbstractKeyToolRequestMojo<R>
Abstract mojo to execute aKeyToolRequestWithKeyStoreParameters
request.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
keystore
Keystore location.private java.lang.String
providerarg
Provider argument.private java.lang.String
providerclass
Provider class name.private java.lang.String
providername
Provider name.private java.lang.String
providerpath
Provider classpath.private java.lang.String
storepass
Keystore password.private java.lang.String
storetype
Keystore type.
-
Constructor Summary
Constructors Constructor Description AbstractKeyToolRequestWithKeyStoreParametersMojo(java.lang.Class<R> requestType)
Constructor of abstract mojo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected R
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.protected void
createParentDirIfNecessary(java.lang.String file)
Create the parent directory of the given file location.protected java.lang.String
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of aCommandline
.protected java.io.File
getFile(java.lang.String path)
protected java.io.File
getKeystoreFile()
-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo
consumeResult, execute
-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
-
-
-
-
Field Detail
-
keystore
@Parameter private java.lang.String keystore
Keystore location. See options.
-
storetype
@Parameter private java.lang.String storetype
Keystore type. See options.
-
storepass
@Parameter(alias="storepass") private java.lang.String storepass
Keystore password. See options.
-
providername
@Parameter private java.lang.String providername
Provider name. See options.- Since:
- 1.2
-
providerclass
@Parameter private java.lang.String providerclass
Provider class name. See options.- Since:
- 1.2
-
providerarg
@Parameter private java.lang.String providerarg
Provider argument. See options.- Since:
- 1.2
-
providerpath
@Parameter private java.lang.String providerpath
Provider classpath. See options.- Since:
- 1.2
-
-
Constructor Detail
-
AbstractKeyToolRequestWithKeyStoreParametersMojo
public AbstractKeyToolRequestWithKeyStoreParametersMojo(java.lang.Class<R> requestType)
Constructor of abstract mojo.- Parameters:
requestType
- type of keytool request used by the mojo
-
-
Method Detail
-
createKeytoolRequest
protected R createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.- Overrides:
createKeytoolRequest
in classAbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
- Returns:
- the created keytool request
- See Also:
KeyToolRequest
-
getCommandlineInfo
protected java.lang.String getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of aCommandline
.This method creates the string representation by calling
commandLine.toString()
by default.- Overrides:
getCommandlineInfo
in classAbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
- Parameters:
commandLine
- TheCommandline
to get a string representation of (can not be null).- Returns:
- The string representation of
commandLine
.
-
createParentDirIfNecessary
protected final void createParentDirIfNecessary(java.lang.String file)
Create the parent directory of the given file location.- Parameters:
file
- file location to check
-
getFile
protected java.io.File getFile(java.lang.String path)
-
getKeystoreFile
protected java.io.File getKeystoreFile()
-
-