public class CryptoUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_CUSTOM_CIPHER_PROPERTY |
static String |
ALLOW_NON_STANDARD_KEY_SIZE_PROPERTY |
static String |
ALLOW_REGISTRATION_XMLDSIG_PROPERTY |
static String |
LEGACY_KDF_PROPERTY |
static String |
LEGACY_SUN_PROVIDER_PROPERTY |
static String |
XMLDSIG_PROVIDER_CLASS |
static String |
XMLDSIG_PROVIDER_NAME |
| Modifier and Type | Method and Description |
|---|---|
static void |
addMissingProvidersIfApplicable()
Adds XMLDSigRI provider if it is a FIPS enviroment.
|
static boolean |
allowLegacyDecryptionKdf() |
static boolean |
allowLegacyDecryptionSunProvider() |
static Optional<Provider> |
getBcSecurityProviderIfApplicable() |
static String |
getSafeErrorMessage(Throwable e,
String defaultMessage)
Gets a safe error message from an exception, prioritizing the most specific message available.
|
static boolean |
isFipsEnabled()
Checks if FIPS is enabled.
|
public static final String LEGACY_KDF_PROPERTY
public static final String LEGACY_SUN_PROVIDER_PROPERTY
public static final String ALLOW_REGISTRATION_XMLDSIG_PROPERTY
public static final String ALLOW_CUSTOM_CIPHER_PROPERTY
public static final String ALLOW_NON_STANDARD_KEY_SIZE_PROPERTY
public static final String XMLDSIG_PROVIDER_NAME
public static final String XMLDSIG_PROVIDER_CLASS
public static boolean isFipsEnabled()
public static void addMissingProvidersIfApplicable()
public static Optional<Provider> getBcSecurityProviderIfApplicable()
public static boolean allowLegacyDecryptionKdf()
public static boolean allowLegacyDecryptionSunProvider()
public static String getSafeErrorMessage(Throwable e, String defaultMessage)
e - The exception to get the message fromdefaultMessage - The default message to use if no specific message is foundCopyright © 2025 MuleSoft, Inc.. All rights reserved.