Package org.codehaus.mojo.keytool
Class ChangeAliasMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="changeAlias", requiresProject=true) public class ChangeAliasMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeAliasRequest>
To change an entry alias into a keystore. Implemented as a wrapper around the SDKkeytool -keyclone
(jdk 1.5) orkeytool -changealias
(jdk 1.6) command. See keystore documentation.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description ChangeAliasMojo()
Default contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyToolChangeAliasRequest
createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.protected java.lang.String
getCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)
Gets a string representation of aCommandline
.java.lang.String
getDestalias()
Gets the value of thedestalias
field.java.lang.String
getKeypass()
Gets the value of thekeypass
field.void
setDestalias(java.lang.String destalias)
void
setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypass
of the request.-
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo
createParentDirIfNecessary, getFile, 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
-
-
-
-
Method Detail
-
getDestalias
public java.lang.String getDestalias()
Gets the value of thedestalias
field.- Returns:
- the value of the
destalias
field
-
setDestalias
public void setDestalias(java.lang.String destalias)
- Parameters:
destalias
- value of the fielddestalias
to set
-
getKeypass
public java.lang.String getKeypass()
Gets the value of thekeypass
field.- Returns:
- the value of the
keypass
field.
-
setKeypass
public void setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypass
of the request.- Parameters:
keypass
- the new value of the fieldkeypass
.
-
createKeytoolRequest
protected KeyToolChangeAliasRequest createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.- Overrides:
createKeytoolRequest
in classAbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeAliasRequest>
- 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 classAbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolChangeAliasRequest>
- Parameters:
commandLine
- TheCommandline
to get a string representation of (can not be null).- Returns:
- The string representation of
commandLine
.
-
-