public interface CipherService
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encryptedValue,
String masterSalt)
Decrypt the given encrypted value.
|
String |
encrypt(String cleartext,
String masterSalt)
Encrypt the given cleartext.
|
void |
setMasterHash(String masterPassword,
String masterSalt,
boolean overwrite)
Store a hash based on the given masterpassword and masterSalt in
~/.deltaspike/master.hash
|
void setMasterHash(String masterPassword, String masterSalt, boolean overwrite) throws IOException
masterPassword - masterSalt - same masterSalt as later used by the application to decrypt the hashoverwrite - whether an existing passkey file does not get overwritten.IOException - if the master hash file could not be writtenIllegalStateException - if a masterhash already existsString encrypt(String cleartext, String masterSalt)
cleartext - to get encryptedmasterSalt - the same as used for setMasterHash(String, String, boolean)String decrypt(String encryptedValue, String masterSalt)
encryptedValue - to get decryptedmasterSalt - the same as used for setMasterHash(String, String, boolean)Copyright © 2020 The Apache Software Foundation. All rights reserved.