Package io.jenkins.test.fips
Interface FIPSTestBundleProvider
- All Known Implementing Classes:
FIPS1402BC1x,FIPS1403BC2x
public interface FIPSTestBundleProvider
This class will some default (validated) FIPS configuration for RealJenkinsRule or anything else
FIPS BouncyCastle jars (bc-fips.jar, bctls-fips.jar and bcpkix-fips.jar) are in the provided directory.
This will set some System properties such :
- -Xbootclasspath with FIPS BouncyCastle jars
- java.security.properties to a new temp file configuring the security provider to FIPS BouncyCastle
- -Dsecurity.overridePropertiesFile=true
- -Djavax.net.ssl.trustStoreType=PKCS12
- -Djenkins.security.FIPS140.COMPLIANCE=true
- -Dcom.redhat.fips=false
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FIPSTestBundleProviderget()this method will return an instance ofFIPSTestBundleProvideraccording to the mechanism definedget(String)or the default version provided byDEFAULT_VERSIONstatic FIPSTestBundleProviderOrder of precedence to obtain version to use env varFIPS_TEST_BUNDLE_VERSIONsystem propertyfips.test.bundle.versionparameter
-
Field Details
-
LOGGER
-
DEFAULT_VERSION
- See Also:
-
SYS_PROP_KEY
- See Also:
-
ENV_VAR_KEY
- See Also:
-
-
Method Details
-
getVersion
String getVersion()- Returns:
- the FIPS specification version managed by this bundle provider
the format will contain BouncyCastle series version as well such
fips-140_2-1.x
-
getJavaOptions
- Returns:
- the
Listof system properties to add to RealJenkinsRule start - Throws:
IOException
-
getBootClasspathFiles
- Returns:
- the
Listof libraries to add to-Xbootclasspath/aoption - Throws:
IOException
-
get
this method will return an instance ofFIPSTestBundleProvideraccording to the mechanism definedget(String)or the default version provided byDEFAULT_VERSION -
get
Order of precedence to obtain version to use- env var
FIPS_TEST_BUNDLE_VERSION - system property
fips.test.bundle.version - parameter
- Parameters:
version- the version to use BUT this can be overridden with above mechanism using env var or system property- Returns:
- instance on
FIPSTestBundleProvideraccording ot
- env var
-