|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.krasnay.crypt.EncryptionServiceImpl
public class EncryptionServiceImpl
| Constructor Summary | |
|---|---|
EncryptionServiceImpl(List<String> keys)
|
|
| Method Summary | |
|---|---|
byte[] |
decrypt(String cipherText)
Decrypts the given cipher text to a byte array. |
String |
decryptString(String cipherText)
Decrypts the given cipher text as a UTF-8 encoded string. |
String |
encrypt(byte[] plainText)
Encrypts a byte array. |
String |
encryptString(String plainText)
Encrypts the UTF-8 encoded bytes of the given string. |
String |
generateKey()
Generates a new key for this service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EncryptionServiceImpl(List<String> keys)
| Method Detail |
|---|
public byte[] decrypt(String cipherText)
EncryptionService
decrypt in interface EncryptionServicepublic String decryptString(String cipherText)
EncryptionService
decryptString in interface EncryptionServicepublic String encrypt(byte[] plainText)
EncryptionService
encrypt in interface EncryptionServicepublic String encryptString(String plainText)
EncryptionService
encryptString in interface EncryptionServicepublic String generateKey()
EncryptionService
generateKey in interface EncryptionService
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||