com.retek.rsm.domain.security.service.impl
Class DecryptionUtil

java.lang.Object
  extended bycom.retek.rsm.domain.security.service.impl.DecryptionUtil

public class DecryptionUtil
extends java.lang.Object


Constructor Summary
DecryptionUtil()
           
 
Method Summary
protected  byte[] encrypt(java.lang.String clearText, PublicKeyEncryptionStrategy publicKeyEncryption)
          Returns a byte[] that is the encrypted representation of the passed in String data.
protected  java.security.PrivateKey getPrivateEncryptionKey()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DecryptionUtil

public DecryptionUtil()
Method Detail

encrypt

protected byte[] encrypt(java.lang.String clearText,
                         PublicKeyEncryptionStrategy publicKeyEncryption)
Returns a byte[] that is the encrypted representation of the passed in String data. The encryption/decryption provider and algorithm are externalized.

Parameters:
clearText - a String
Returns:
the byte[] that is the encrypted string

getPrivateEncryptionKey

protected java.security.PrivateKey getPrivateEncryptionKey()