org.codehaus.mojo.properties
Class DecryptAllPropertiesMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.codehaus.mojo.properties.DecryptAllPropertiesMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
public class DecryptAllPropertiesMojo
- extends org.apache.maven.plugin.AbstractMojo
Inspect project and system properties for any keys ending with endsWith
. Any matching properties are assumed to be encrypted. They are decrypted and stored as
project properties minus the endsWith
suffix. For example, the value for the property "dba.password.encrypted" will be decrypted and stored as "dba.password"
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecryptAllPropertiesMojo
public DecryptAllPropertiesMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
getDecryptedValue
protected String getDecryptedValue(org.jasypt.util.text.TextEncryptor encryptor,
String value)
getProject
public org.apache.maven.project.MavenProject getProject()
setProject
public void setProject(org.apache.maven.project.MavenProject project)
getEndsWith
public String getEndsWith()
setEndsWith
public void setEndsWith(String endsWith)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
Copyright © 2009-2013 The Kuali Foundation. All Rights Reserved.