Class CipherEncryptionService
- java.lang.Object
-
- org.pentaho.platform.engine.security.CipherEncryptionService
-
- All Implemented Interfaces:
org.pentaho.platform.api.util.IPasswordService
,org.springframework.beans.factory.InitializingBean
public class CipherEncryptionService extends Object implements org.pentaho.platform.api.util.IPasswordService, org.springframework.beans.factory.InitializingBean
-
-
Constructor Summary
Constructors Constructor Description CipherEncryptionService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
String
decrypt(String encryptedPassword)
String
encrypt(String clearPassword)
String
getAlgorithm()
String
getEncryptionKey()
int
getIterations()
String
getSalt()
static void
main(String[] args)
void
setAlgorithm(String value)
void
setEncryptionKey(String value)
void
setIterations(int value)
void
setSalt(String value)
-
-
-
Method Detail
-
setSalt
public void setSalt(String value)
-
getSalt
public String getSalt()
-
setAlgorithm
public void setAlgorithm(String value)
-
getAlgorithm
public String getAlgorithm()
-
setEncryptionKey
public void setEncryptionKey(String value)
-
getEncryptionKey
public String getEncryptionKey()
-
setIterations
public void setIterations(int value)
-
getIterations
public int getIterations()
-
afterPropertiesSet
public void afterPropertiesSet() throws org.pentaho.platform.api.engine.ObjectFactoryException
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
org.pentaho.platform.api.engine.ObjectFactoryException
-
decrypt
public String decrypt(String encryptedPassword) throws org.pentaho.platform.api.util.PasswordServiceException
- Specified by:
decrypt
in interfaceorg.pentaho.platform.api.util.IPasswordService
- Throws:
org.pentaho.platform.api.util.PasswordServiceException
-
encrypt
public String encrypt(String clearPassword) throws org.pentaho.platform.api.util.PasswordServiceException
- Specified by:
encrypt
in interfaceorg.pentaho.platform.api.util.IPasswordService
- Throws:
org.pentaho.platform.api.util.PasswordServiceException
-
main
public static void main(String[] args)
-
-