|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ifeth.sehr.lib.DesEncrypter
Constructor Summary | |
DesEncrypter()
Parameterless Constructor |
|
DesEncrypter(char[] key)
Constructor with preparation of en-/decryption |
Method Summary | |
javax.crypto.CipherInputStream |
getCipherInputStream(java.io.FileInputStream fis)
Input stream with cipher |
javax.crypto.CipherOutputStream |
getCipherOutputStream(java.io.FileOutputStream fos)
Output stream with cipher |
javax.crypto.Cipher |
getDecryptionCipher()
Get cipher for decryption |
javax.crypto.Cipher |
getEncryptionCipher()
Get cipher object for encryption |
java.lang.String |
getErrorMessage()
Returns the last errorMessage. |
boolean |
init(char[] key)
|
boolean |
isValid()
If 'true' the cipher object is usable |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DesEncrypter()
public DesEncrypter(char[] key) throws java.lang.Exception
java.lang.Exception
Method Detail |
public boolean init(char[] key)
public boolean isValid()
public javax.crypto.Cipher getEncryptionCipher()
public javax.crypto.Cipher getDecryptionCipher()
public javax.crypto.CipherInputStream getCipherInputStream(java.io.FileInputStream fis)
fis
- - FileInputStream
public javax.crypto.CipherOutputStream getCipherOutputStream(java.io.FileOutputStream fos)
fos
- - FileOutputStream
public java.lang.String getErrorMessage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |