@NonNullByDefault public interface StorageCipher
This allows the encryption and decryption to be performed before saving to storage.
- Gary Tse - Initial contribution
getUniqueCipherIdString getUniqueCipherId()A unique cipher identifier per each implementation of StorageCipher. It allows the OAuthStoreHandler to choose which cipher implementation to use. This is particularly important when old ciphers becomes out-dated and need to be replaced by new implementations.
- unique identifier
encryptEncrypt the plainText, then produce a base64 encoded cipher text
- base64 encoded( encrypted( text ) )
GeneralSecurityException- all security-related exception
decryptDecrypt the base64 encoded cipher text.