org.jasig.portlet.emailpreview.security
Class JasyptPBEStringEncryptionServiceImpl

java.lang.Object
  extended by org.jasig.portlet.emailpreview.security.JasyptPBEStringEncryptionServiceImpl
All Implemented Interfaces:
IStringEncryptionService

public class JasyptPBEStringEncryptionServiceImpl
extends Object
implements IStringEncryptionService

JasyptPBEStringEncryptionServiceImpl is an implementation of IStringEncryptionService that uses a configurable Jasypt PBEStringEncryptor to perform string encryption and decryption.

Author:
Jen Bourey

Constructor Summary
JasyptPBEStringEncryptionServiceImpl()
           
 
Method Summary
 String decrypt(String cryptotet)
          Decrypt a string
 String encrypt(String plaintext)
          Encrypt a string
 void setStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
          Set the PBEStringEncryptor to be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasyptPBEStringEncryptionServiceImpl

public JasyptPBEStringEncryptionServiceImpl()
Method Detail

setStringEncryptor

public void setStringEncryptor(org.jasypt.encryption.pbe.PBEStringEncryptor encryptor)
Set the PBEStringEncryptor to be used

Parameters:
encryptor -

encrypt

public String encrypt(String plaintext)
Encrypt a string

Specified by:
encrypt in interface IStringEncryptionService
Returns:

decrypt

public String decrypt(String cryptotet)
Decrypt a string

Specified by:
decrypt in interface IStringEncryptionService
Returns:


Copyright © 2012 Jasig. All Rights Reserved.