Package org.jenkinsci.plugins.oic
Class OicAlgorithmValidatorFIPS140
java.lang.Object
org.jenkinsci.plugins.oic.OicAlgorithmValidatorFIPS140
This class helps in validating algorithms for FIPS-140 compliance and filtering the non-compliant algorithms when in
FIPS mode.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<com.nimbusds.jose.EncryptionMethod> getFipsCompliantEncryptionMethod
(List<com.nimbusds.jose.EncryptionMethod> algorithms) Filter the list of encryption method lists used in OIC configuration and return only the FIPS-140 compliant algorithmsstatic List
<com.nimbusds.jose.JWEAlgorithm> getFipsCompliantJWEAlgorithm
(List<com.nimbusds.jose.JWEAlgorithm> algorithms) Filter the list of JWE encryption lists used in OIC configuration and return only the FIPS-140 compliant algorithmsstatic List
<com.nimbusds.jose.JWSAlgorithm> getFipsCompliantJWSAlgorithm
(List<com.nimbusds.jose.JWSAlgorithm> algorithms) Filter the list of JWS encryption lists used in OIC configuration and return only the FIPS-140 compliant algorithmsstatic boolean
isEncryptionMethodFipsCompliant
(com.nimbusds.jose.EncryptionMethod encryptionMethod) Checks if the encryption method used for OIC configuration is FIPS-140 compliant.static boolean
isJWEAlgorithmFipsCompliant
(com.nimbusds.jose.JWEAlgorithm algorithm) Checks if the JWE encryption algorithm used for OIC configuration is FIPS-140 compliant.static boolean
isJWSAlgorithmFipsCompliant
(com.nimbusds.jose.JWSAlgorithm algorithm) Checks if the JWS signing algorithm used for OIC configuration is FIPS-140 compliant.
-
Constructor Details
-
OicAlgorithmValidatorFIPS140
public OicAlgorithmValidatorFIPS140()
-
-
Method Details
-
isJWSAlgorithmFipsCompliant
public static boolean isJWSAlgorithmFipsCompliant(@NonNull com.nimbusds.jose.JWSAlgorithm algorithm) Checks if the JWS signing algorithm used for OIC configuration is FIPS-140 compliant. -
isJWEAlgorithmFipsCompliant
public static boolean isJWEAlgorithmFipsCompliant(@NonNull com.nimbusds.jose.JWEAlgorithm algorithm) Checks if the JWE encryption algorithm used for OIC configuration is FIPS-140 compliant. -
isEncryptionMethodFipsCompliant
public static boolean isEncryptionMethodFipsCompliant(@NonNull com.nimbusds.jose.EncryptionMethod encryptionMethod) Checks if the encryption method used for OIC configuration is FIPS-140 compliant. -
getFipsCompliantJWEAlgorithm
@NonNull public static List<com.nimbusds.jose.JWEAlgorithm> getFipsCompliantJWEAlgorithm(@NonNull List<com.nimbusds.jose.JWEAlgorithm> algorithms) Filter the list of JWE encryption lists used in OIC configuration and return only the FIPS-140 compliant algorithms- Returns:
- immutable list of FIPS-140 JWE encryption algorithms
-
getFipsCompliantJWSAlgorithm
@NonNull public static List<com.nimbusds.jose.JWSAlgorithm> getFipsCompliantJWSAlgorithm(@NonNull List<com.nimbusds.jose.JWSAlgorithm> algorithms) Filter the list of JWS encryption lists used in OIC configuration and return only the FIPS-140 compliant algorithms- Returns:
- immutable list of FIPS-140 JWS encryption algorithms
-
getFipsCompliantEncryptionMethod
public static List<com.nimbusds.jose.EncryptionMethod> getFipsCompliantEncryptionMethod(@NonNull List<com.nimbusds.jose.EncryptionMethod> algorithms) Filter the list of encryption method lists used in OIC configuration and return only the FIPS-140 compliant algorithms- Returns:
- immutable list of FIPS-140 encryption methods
-