public class ConfigurableEncryptor extends Object
| Constructor and Description |
|---|
ConfigurableEncryptor(String passPhrase) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] salt,
byte[] iv,
byte[] encrypt) |
EncryptionResult |
encrypt(byte[] plain) |
EncryptionResult |
encrypt(String encrypt) |
SecretKey |
getKeyFromPassword(String passPhrase,
byte[] salt) |
void |
init(GatewayConfig config) |
public ConfigurableEncryptor(String passPhrase)
public void init(GatewayConfig config)
public EncryptionResult encrypt(String encrypt) throws Exception
Exceptionpublic EncryptionResult encrypt(byte[] plain) throws Exception
ExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.