|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ca.commons.security.crypto.CryptoUtil
public final class CryptoUtil
| Field Summary | |
|---|---|
static String |
FIPS_PROPERTY
Can be used to override FIPS settings using single property is desired, e.g. to force it off. |
static String |
JSAFE_PROVIDER
The name of the RSA JSafe JCE provider. |
static Logger |
logger
|
protected static Random |
random
|
protected static String |
randomClass
|
| Method Summary | |
|---|---|
static void |
addJSafeFIPSProvider()
Adds the Jsafe FIPS-compliant JCE provider ("JsafeJCE") to this JVM. |
static void |
addJSafeFIPSProvider(boolean logProviders)
|
static void |
addJSafeFIPSProvider(int position)
|
static void |
addJSafeFIPSProvider(int position,
boolean logProviders)
|
static void |
addJSafeFIPSProvider(int position,
String[] cipherSuites)
|
static void |
disableFipsMode()
Disable FIPS mode |
static void |
enableFipsMode(String[] cipherSuites)
Enable FIPS mode with an optional set of FIPS compliant cipher suites to enable. |
static String[] |
getCipherSuites()
|
static String[] |
getDefaultCipherSuites()
FIPS compliant cipher suites |
static Random |
getRandom()
|
static boolean |
hasJSafeFIPSProvider()
|
static boolean |
isFipsMode()
|
static Boolean |
isFipsModeForced()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Logger logger
public static final String JSAFE_PROVIDER
public static final String FIPS_PROPERTY
protected static Random random
protected static String randomClass
| Method Detail |
|---|
public static Boolean isFipsModeForced()
public static boolean isFipsMode()
public static void enableFipsMode(String[] cipherSuites)
cipherSuites - list of cipherSuites or null for default cipher suitespublic static void disableFipsMode()
public static String[] getDefaultCipherSuites()
public static String[] getCipherSuites()
public static void addJSafeFIPSProvider()
If a security manager is in place, then this method may be prevented from installing the JsafeJCE provider, in which case the failure is logged and this method returns.
public static void addJSafeFIPSProvider(int position)
public static void addJSafeFIPSProvider(int position,
String[] cipherSuites)
public static void addJSafeFIPSProvider(boolean logProviders)
public static void addJSafeFIPSProvider(int position,
boolean logProviders)
public static boolean hasJSafeFIPSProvider()
public static Random getRandom()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||