org.codehaus.mojo.properties
Class DecryptAllPropertiesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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"


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
DecryptAllPropertiesMojo()
           
 
Method Summary
 void execute()
           
protected  String getDecryptedValue(org.jasypt.util.text.TextEncryptor encryptor, String value)
           
 String getEndsWith()
           
 String getPassword()
           
 org.apache.maven.project.MavenProject getProject()
           
 void setEndsWith(String endsWith)
           
 void setPassword(String password)
           
 void setProject(org.apache.maven.project.MavenProject project)
           
 
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
 

Constructor Detail

DecryptAllPropertiesMojo

public DecryptAllPropertiesMojo()
Method Detail

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.