Package org.codehaus.mojo.keytool
Class ChangeKeyPasswordMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="changeKeyPassword", requiresProject=true) public class ChangeKeyPasswordMojo extends AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeKeyPasswordRequest>To change the key password of an entry of a keystore. Implemented as a wrapper around the SDKkeytool -keypasswdcommand. See keystore documentation.- Since:
- 1.2
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringkeypassKey password.private java.lang.StringnewPasswordNew password.
-
Constructor Summary
Constructors Constructor Description ChangeKeyPasswordMojo()Default contructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected KeyToolChangeKeyPasswordRequestcreateKeytoolRequest()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.-
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
-
createKeytoolRequest
protected KeyToolChangeKeyPasswordRequest createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.- Overrides:
createKeytoolRequestin classAbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo<KeyToolChangeKeyPasswordRequest>- 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<KeyToolChangeKeyPasswordRequest>- Parameters:
commandLine- TheCommandlineto get a string representation of (can not be null).- Returns:
- The string representation of
commandLine.
-
-