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

java.lang.Object
  extended bycom.retek.platform.service.AbstractService
      extended bycom.retek.rsm.domain.security.service.impl.EncryptionCoreServiceImpl
All Implemented Interfaces:
EncryptionCoreService, com.retek.platform.service.Service

public class EncryptionCoreServiceImpl
extends com.retek.platform.service.AbstractService
implements EncryptionCoreService


Field Summary
 
Fields inherited from class com.retek.platform.service.AbstractService
LOG
 
Fields inherited from interface com.retek.platform.service.Service
serialVersionUID
 
Constructor Summary
EncryptionCoreServiceImpl()
           
 
Method Summary
 java.lang.String decrypt(EncryptedText encryptedText)
          Returns a Stringobject that is an decrypted representation of the passed in EncryptedText object application to encrypt a password or other data.
 EncryptedText encrypt(PublicKeyEncryptionStrategy publicKeyInfo, java.lang.String clearText)
          Returns a EncryptedTextobject that is an encrypted representation of the passed in clearText String.
 PublicKeyEncryptionStrategy getPublicEncryptionStrategy()
          Returns a PulicKeyEncryptionStrategyobject that is required by the calling application to encrypt a password or other data.
 
Methods inherited from class com.retek.platform.service.AbstractService
attachFallbackHandler, executeRule, executeRule, getFallbackHandler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.retek.platform.service.Service
attachFallbackHandler
 

Constructor Detail

EncryptionCoreServiceImpl

public EncryptionCoreServiceImpl()
Method Detail

getPublicEncryptionStrategy

public PublicKeyEncryptionStrategy getPublicEncryptionStrategy()
Returns a PulicKeyEncryptionStrategyobject that is required by the calling application to encrypt a password or other data.

Specified by:
getPublicEncryptionStrategy in interface EncryptionCoreService
Returns:
the publc key strategy being used by RSM

encrypt

public EncryptedText encrypt(PublicKeyEncryptionStrategy publicKeyInfo,
                             java.lang.String clearText)
Returns a EncryptedTextobject that is an encrypted representation of the passed in clearText String. application to encrypt a password or other data.

Specified by:
encrypt in interface EncryptionCoreService
Parameters:
publicKeyInfo - - The PublicKeyEncryptionStrategy object is required for the encryption.
clearText - - The String that is encrypted
Returns:
the publc key strategy being used by RSM

decrypt

public java.lang.String decrypt(EncryptedText encryptedText)
Returns a Stringobject that is an decrypted representation of the passed in EncryptedText object application to encrypt a password or other data.

Specified by:
decrypt in interface EncryptionCoreService
Parameters:
encryptedText - - The EncryptedText object is contains the byte[] to be decrypted.
Returns:
the decrypted String