|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PBEService
Encapsulates an PBE (Password Based Encryption) functionality from the JCE (Java Crypto Extension). The service provides
| Method Summary | |
|---|---|
char[] |
createPassword()
Create a password based on the pre-defined seed. |
char[] |
createPassword(char[] seed)
Create a password based on the supplied seed. |
void |
decrypt(Object source,
Object target,
char[] password)
Copies from a source to a target object using decrpytion. |
String |
decryptString(String cipherText,
char[] password)
Decrypts an encrypted string into the plain text. |
void |
encrypt(Object source,
Object target,
char[] password)
Copies from a source to a target object using encryption. |
String |
encryptString(String plainText,
char[] password)
Encrypts a string into a hex string. |
InputStream |
getInputStream(InputStream is,
char[] password)
Creates a decrypting input stream. |
OutputStream |
getOutputStream(OutputStream os,
char[] password)
Creates an encrypting output stream. |
InputStream |
getSmartInputStream(InputStream is,
char[] password)
Creates a smart decrypting input stream. |
| Method Detail |
|---|
char[] createPassword()
throws Exception
Exception - the password creation failed
char[] createPassword(char[] seed)
throws Exception
seed - the seed value for the password generation
Exception - the password creation failed
InputStream getInputStream(InputStream is,
char[] password)
throws GeneralSecurityException,
IOException
is - the input stream to be wrappedpassword - the password to be used
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
InputStream getSmartInputStream(InputStream is,
char[] password)
throws GeneralSecurityException,
IOException
is - the input stream to be wrappedpassword - the password to be used
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
OutputStream getOutputStream(OutputStream os,
char[] password)
throws GeneralSecurityException,
IOException
os - the output stream to be wrappedpassword - the password to be used
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
void encrypt(Object source,
Object target,
char[] password)
throws GeneralSecurityException,
IOException
source - the source objecttarget - the target objectpassword - the password to use for encryption
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
void decrypt(Object source,
Object target,
char[] password)
throws GeneralSecurityException,
IOException
source - the source objecttarget - the target objectpassword - the password to use for decryption
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
String encryptString(String plainText,
char[] password)
throws GeneralSecurityException,
IOException
plainText - the plain text to be encryptedpassword - the password for encryption
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
String decryptString(String cipherText,
char[] password)
throws GeneralSecurityException,
IOException
cipherText - the encrypted text to be decryptedpassword - the password for decryption
GeneralSecurityException - accessing the JCE failed
IOException - an IOException occured during processing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||