public class PassphraseCipherTool extends Object implements Base64CipherTool, CipherTool
| Modifier and Type | Method and Description |
|---|---|
static PassphraseCipherTool |
createCipherToolWithDefaultPassphrase() |
static PassphraseCipherTool |
createCipherToolWithDefaultPassphrase(String salt) |
static PassphraseCipherTool |
createCipherToolWithSpecifiedPassphrase(String passphrase) |
static PassphraseCipherTool |
createCipherToolWithSpecifiedPassphrase(String passphrase,
String salt) |
byte[] |
decrypt(byte[] data) |
String |
decryptBase64(String someString) |
byte[] |
encrypt(byte[] data) |
String |
encryptBase64(String someString) |
byte[] |
getSalt() |
String |
getSaltBase64() |
public static PassphraseCipherTool createCipherToolWithDefaultPassphrase()
public static PassphraseCipherTool createCipherToolWithDefaultPassphrase(String salt)
public static PassphraseCipherTool createCipherToolWithSpecifiedPassphrase(String passphrase, String salt)
public static PassphraseCipherTool createCipherToolWithSpecifiedPassphrase(String passphrase)
public byte[] encrypt(byte[] data)
throws GeneralSecurityException
encrypt in interface CipherToolGeneralSecurityExceptionpublic byte[] decrypt(byte[] data)
throws GeneralSecurityException
decrypt in interface CipherToolGeneralSecurityExceptionpublic String decryptBase64(String someString) throws GeneralSecurityException
decryptBase64 in interface Base64CipherToolGeneralSecurityExceptionpublic String encryptBase64(String someString) throws GeneralSecurityException
encryptBase64 in interface Base64CipherToolGeneralSecurityExceptionpublic final byte[] getSalt()
public final String getSaltBase64()
Copyright 2004-2019 Solace Corporation. All rights reserved.