|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.services.crypto.provider.UnixCrypt
Implements Standard Unix crypt(3) for use with the Crypto Service.
Constructor Summary | |
UnixCrypt()
C'tor |
Method Summary | |
java.lang.String |
encrypt(java.lang.String value)
encrypt the supplied string with the requested cipher |
void |
setCipher(java.lang.String cipher)
This class never uses anything but UnixCrypt, so it is just a dummy (Fixme: Should we throw an exception if something is requested that we don't support? |
void |
setSeed(java.lang.String seed)
Setting the seed for the UnixCrypt algorithm. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public UnixCrypt()
Method Detail |
public void setCipher(java.lang.String cipher)
setCipher
in interface CryptoAlgorithm
cipher
- Cipher (ignored)public void setSeed(java.lang.String seed)
setSeed
in interface CryptoAlgorithm
seed
- The seed value to use.public java.lang.String encrypt(java.lang.String value) throws java.lang.Exception
encrypt
in interface CryptoAlgorithm
value
- The value to be encrypted
java.lang.Exception
- An Exception of the underlying implementation.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |