org.pentaho.reporting.engine.classic.core.modules.parser.base
Class StaticAESPasswordEncryptionServiceProvider

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.parser.base.StaticAESPasswordEncryptionServiceProvider
All Implemented Interfaces:
PasswordEncryptionServiceProvider

public class StaticAESPasswordEncryptionServiceProvider
extends Object
implements PasswordEncryptionServiceProvider

If you use dependency injection to provide your own key make sure that you also redefine the prefix.


Constructor Summary
StaticAESPasswordEncryptionServiceProvider()
           
 
Method Summary
 String decrypt(String encryptedPassword)
           
 String encrypt(String rawPassword)
           
 String getKey()
           
 String getPrefix()
           
 void setKey(String key)
           
 void setPrefix(String prefix)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticAESPasswordEncryptionServiceProvider

public StaticAESPasswordEncryptionServiceProvider()
Method Detail

getKey

public String getKey()

setKey

public void setKey(String key)

setPrefix

public void setPrefix(String prefix)

getPrefix

public String getPrefix()
Specified by:
getPrefix in interface PasswordEncryptionServiceProvider

encrypt

public String encrypt(String rawPassword)
Specified by:
encrypt in interface PasswordEncryptionServiceProvider

decrypt

public String decrypt(String encryptedPassword)
Specified by:
decrypt in interface PasswordEncryptionServiceProvider