com.retek.component.payment
Interface EncryptionStrategy
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- BaseEncryptionStrategy, DESEncryptionStrategy, NoOpEncryptionStrategy
- public interface EncryptionStrategy
- extends java.io.Serializable
Defines a general interface for interacting with various encryption implementations. Currently
implemented by DESCreditCardNumberEncryptionStrategy and NoOpCreditCardNumberEncryptionStrategy
the former of which performs DES encryption and the latter of which performs no encryption. The
determination of which encryption strategy to use is made at application launch time by setting
the retek.security.encryption flag to true or false.
Retek Inc. Copyright (c) 2003
Method Summary |
java.lang.String |
decrypt(java.lang.String encryptedText)
|
java.lang.String |
encrypt(java.lang.String clearText)
|
java.lang.String |
getKey()
|
void |
setKey(java.lang.String stringKey)
|
encrypt
public java.lang.String encrypt(java.lang.String clearText)
throws SystemException
- Throws:
SystemException
decrypt
public java.lang.String decrypt(java.lang.String encryptedText)
throws SystemException
- Throws:
SystemException
getKey
public java.lang.String getKey()
setKey
public void setKey(java.lang.String stringKey)
Copyright © 2004 Retek Inc. All Rights Reserved.
- Generated at Fri, 10/22/2004 07:28