|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.jcs.crypto.legacy.LegacyCryptoService
public class LegacyCryptoService
This makes use of the static obfuscation used by
CA Workflow/Self Service etc, which can be found at Crypt.
| Field Summary | |
|---|---|
static int |
AES_ALG_I
|
static Map<String,Integer> |
ALG_LOOKUP
|
static Map<String,Integer> |
ALG_PREF_LOOKUP
|
static String[] |
ALG_PREFS
|
static String[] |
ALGS
|
static int |
CA_ALG_I
|
static int |
LND_ALG_I
|
static String |
PROP_FILE
Name of properties file containing properties configuring support for all crypto modules used by this service. |
static int |
SHA1_B64_ALG_I
|
| Constructor Summary | |
|---|---|
LegacyCryptoService()
|
|
| Method Summary | |
|---|---|
void |
activate()
This method is called when the target object has been fully initialised, and is ready to receive requests. |
void |
deactivate()
This method is called when the target object is no longer needed and should tidy-up any connections / resources it holds. |
String |
decrypt(String defaultAlgorithm,
String cipherText)
Decrypt the provided cipherText falling back to the provided defaultAlgorithm
if the cipherText doesn't start with a supported prefix in ALG_PREFS. |
byte[] |
decryptBytes(String algorithm,
byte[] cipherText)
Stubbed out until know it is needed. |
String |
encrypt(String algorithm,
String clearText)
|
String |
encrypt(String algorithm,
String clearText,
boolean addAlgorithmPrefix)
|
byte[] |
encryptBytes(String algorithm,
byte[] clearText)
Stubbed out until know it is needed. |
boolean |
isActivated()
|
static void |
main(String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PROP_FILE
public static final int AES_ALG_I
public static final int CA_ALG_I
public static final int LND_ALG_I
public static final int SHA1_B64_ALG_I
public static final String[] ALGS
public static final String[] ALG_PREFS
public static final Map<String,Integer> ALG_LOOKUP
public static final Map<String,Integer> ALG_PREF_LOOKUP
| Constructor Detail |
|---|
public LegacyCryptoService()
| Method Detail |
|---|
public boolean isActivated()
public String encrypt(String algorithm,
String clearText)
encrypt in interface CryptoService
public String encrypt(String algorithm,
String clearText,
boolean addAlgorithmPrefix)
public String decrypt(String defaultAlgorithm,
String cipherText)
cipherText falling back to the provided defaultAlgorithm
if the cipherText doesn't start with a supported prefix in ALG_PREFS.
decrypt in interface CryptoService
public byte[] encryptBytes(String algorithm,
byte[] clearText)
encryptBytes in interface CryptoService
public byte[] decryptBytes(String algorithm,
byte[] cipherText)
decryptBytes in interface CryptoService
public void activate()
throws NamingException
Activatable
activate in interface ActivatableNamingException
public void deactivate()
throws NamingException
Activatable
deactivate in interface ActivatableNamingExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||