Package org.opendaylight.aaa.encrypt
Interface AAAEncryptionService
- All Known Implementing Classes:
AAAEncryptionServiceImpl
public interface AAAEncryptionService
A generic encryption/decryption service for encrypting various data in ODL.
- Author:
- - Sharon Aicler ([email protected])
-
Method Summary
-
Method Details
-
encrypt
Encryptdata
using a 2-way encryption mechanism.- Parameters:
data
- plaintext data- Returns:
- an encrypted representation of
data
- Throws:
NullPointerException
- whendata
isnull
GeneralSecurityException
- when encryption fails
-
decrypt
DecryptencryptedData
using a 2-way decryption mechanism.- Parameters:
encryptedData
- encrypted data- Returns:
- plaintext bytes
- Throws:
NullPointerException
- whenencryptedData
isnull
GeneralSecurityException
- when decryption fails
-