com.retek.rsm.domain.security.service
Interface EncryptionCoreService

All Superinterfaces:
com.retek.platform.service.Service
All Known Implementing Classes:
EncryptionCoreServiceImpl

public interface EncryptionCoreService
extends com.retek.platform.service.Service


Field Summary
 
Fields inherited from interface com.retek.platform.service.Service
serialVersionUID
 
Method Summary
 java.lang.String decrypt(EncryptedText encryptedText)
          Returns a Stringobject that is an decrypted representation of the passed in byte[] held in parameter object EncryptedText.
 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 interface com.retek.platform.service.Service
attachFallbackHandler
 

Method Detail

getPublicEncryptionStrategy

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

Returns:
the public 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.

Parameters:
publicKeyInfo - - The PublicKeyEncryptionStrategy object contains details on how to encrypt.
clearText - - The String object the is encrypted.
Returns:
the EncyrptedText object

decrypt

public java.lang.String decrypt(EncryptedText encryptedText)
Returns a Stringobject that is an decrypted representation of the passed in byte[] held in parameter object EncryptedText.

Parameters:
encryptedText - - The EncryptedText object that is decrypted..
Returns:
the decrypted String object