com.retek.rsm.domain.security.service.impl
Class EncryptionCoreServiceImpl
java.lang.Object
|
+--com.retek.platform.service.AbstractService
|
+--com.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
Fields inherited from class com.retek.platform.service.AbstractService |
LOG |
Fields inherited from interface com.retek.platform.service.Service |
serialVersionUID |
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 |
EncryptionCoreServiceImpl
public EncryptionCoreServiceImpl()
getPublicEncryptionStrategy
public PublicKeyEncryptionStrategy getPublicEncryptionStrategy()
- Returns a
PulicKeyEncryptionStrategy
object 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
EncryptedText
object 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
String
object 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