public class WssDecryptSecurityStrategy extends Object implements SecurityStrategy
FIPS mode is determined exclusively from mule.security.model (if it starts with fips140-). When FIPS is
detected, this class sets fips.enabled=true so that WSS4J (WSS-711) and other components see the same mode. In FIPS
mode, RSA 1.5 key transport is not allowed by default (only RSA-OAEP); this can be overridden by setting the system property
mule.soap.security.allowRsa15InFips=true for legacy interoperability (not recommended).
SecurityStrategy.SecurityStrategyType| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_RSA15_IN_FIPS_PROPERTY
System property to allow RSA 1.5 key transport even in FIPS mode.
|
| Constructor and Description |
|---|
WssDecryptSecurityStrategy(WssKeyStoreConfiguration keyStoreConfiguration)
Creates a decrypt strategy.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<WSPasswordCallbackHandler> |
buildPasswordCallbackHandler()
Gives the option to return a custom
WSPasswordCallbackHandler instance allowing to compose many password handlers
from different security strategies. |
Map<String,Object> |
buildSecurityProperties()
Returns a set of properties to be set on the SOAP request interceptors (OUT interceptors) in order to applies
this
security strategy. |
static boolean |
isFIPSMode()
Determines if the runtime is in FIPS mode.
|
static void |
resetFIPSModeCache()
Clears the cached FIPS mode so that the next construction of a
WssDecryptSecurityStrategy will re-read
mule.security.model. |
String |
securityAction()
Returns the security action name that is going to be executed in the request phase (OUT interceptors).
|
SecurityStrategy.SecurityStrategyType |
securityType()
Returns the type of the security strategy, if applies for the request or the response.
|
public static final String ALLOW_RSA15_IN_FIPS_PROPERTY
public WssDecryptSecurityStrategy(WssKeyStoreConfiguration keyStoreConfiguration)
mule.security.model (prefix fips140-). In FIPS mode, RSA 1.5 is disabled by default but can be forced
via ALLOW_RSA15_IN_FIPS_PROPERTY.public static void resetFIPSModeCache()
WssDecryptSecurityStrategy will re-read
mule.security.model. Primarily for tests that need to simulate different environments (FIPS vs non-FIPS) in the same
JVM.public static boolean isFIPSMode()
mule.security.model as the single source of truth (values starting
with fips140-). When FIPS is detected, also sets fips.enabled=true so WSS4J (WSS-711) and other libraries see
the same mode. The fips.enabled property alone is not considered a valid source of truth for FIPS mode detection.
Result is cached. No reflection; safe with any WSS4J version.public SecurityStrategy.SecurityStrategyType securityType()
SecurityStrategysecurityType in interface SecurityStrategypublic String securityAction()
SecurityStrategysecurityAction in interface SecurityStrategythis security strategy.public Optional<WSPasswordCallbackHandler> buildPasswordCallbackHandler()
SecurityStrategyWSPasswordCallbackHandler instance allowing to compose many password handlers
from different security strategies.buildPasswordCallbackHandler in interface SecurityStrategyWSPasswordCallbackHandler to be added to the composite callback handler.public Map<String,Object> buildSecurityProperties()
SecurityStrategythis
security strategy.buildSecurityProperties in interface SecurityStrategyMap with the properties required to apply the security strategy.Copyright © 2026. All rights reserved.