public interface Encryptor
encrypt(java.lang.String)
can later be decrypted with decrypt(java.lang.String)
.Modifier and Type | Method and Description |
---|---|
default boolean |
changeEncryptionKey()
Generate new encryption key, which should be used to encrypt password in following calls to
encrypt(java.lang.String) . |
String |
decrypt(String encryptedPassword)
Decrypt encrypted password, and return its original value.
|
String |
encrypt(String password)
Encrypt plaintext password, and return encrypted value which can later be used in decrypt method to get plaintext password.
|
String encrypt(String password)
MissingKeyException
- when encryption key has not been found in the file system or the default key is not setString decrypt(String encryptedPassword)
In case of any error during decryption (such as missing decryption key) return encryptedPassword
.
encryptedPassword
in case of any errordefault boolean changeEncryptionKey()
encrypt(java.lang.String)
.Copyright © 2024 Atlassian. All rights reserved.