public class CipherSuiteFactory
extends java.lang.Object
| Constructor and Description |
|---|
CipherSuiteFactory() |
| Modifier and Type | Method and Description |
|---|---|
static CipherSuite |
create(java.lang.String algorithm,
java.lang.String passphrase,
boolean urlSafe)
Creates a cipher suite.
|
public static CipherSuite create(java.lang.String algorithm, java.lang.String passphrase, boolean urlSafe)
algorithm - An algorithm {"DES", "3DES", "AES256"}passphrase - A passphraseurlSafe - if true this encoder will emit '-' and '_' instead of the
usual '+' and '/' characters.
Note: no padding is added when encoding using the URL-safe alphabet.EncryptionException - if the algorithm is not supported