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 KeyToolChangeAliasRequestcreateKeytoolRequest()To prepare the incoming request, says fill it with mojo parameters.protected java.lang.StringgetCommandlineInfo(org.apache.maven.shared.utils.cli.Commandline commandLine)Gets a string representation of aCommandline.java.lang.StringgetDestalias()Gets the value of thedestaliasfield.java.lang.StringgetKeypass()Gets the value of thekeypassfield.voidsetDestalias(java.lang.String destalias)voidsetKeypass(java.lang.String keypass)Sets the new given value to the fieldkeypassof 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 thedestaliasfield.- Returns:
- the value of the
destaliasfield
-
setDestalias
public void setDestalias(java.lang.String destalias)
- Parameters:
destalias- value of the fielddestaliasto set
-
getKeypass
public java.lang.String getKeypass()
Gets the value of thekeypassfield.- Returns:
- the value of the
keypassfield.
-
setKeypass
public void setKeypass(java.lang.String keypass)
Sets the new given value to the fieldkeypassof 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:
createKeytoolRequestin 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:
getCommandlineInfoin classAbstractKeyToolRequestWithKeyStoreParametersMojo<KeyToolChangeAliasRequest>- Parameters:
commandLine- TheCommandlineto get a string representation of (can not be null).- Returns:
- The string representation of
commandLine.
-
-