wso2 / wso2-wss4j

Apache License 2.0
41 stars 65 forks source link

Introduce system property to change crypto provider #91

Closed lasanthaS closed 1 year ago

lasanthaS commented 1 year ago

Purpose

This PR introduces a new System property security.jce.provider which can be used to change the Crypto Provider from its default BouncyCastleProvider for BouncyCastleFipsProvider.

Related to https://github.com/wso2/api-manager/issues/1219

Approach

To toggle the Crypto Provider to the BouncyCastleFipsProvider provider, provide the following system provider while starting up the server.

... -Dsecurity.jce.provider=BCFIPS ...

Security checks