Package com.nimbusds.jose.jca
Class JCASupport
java.lang.Object
com.nimbusds.jose.jca.JCASupport
Java Cryptography Architecture (JCA) support helper.
- Version:
- 2022-05-16
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisSupported(Algorithm alg) Checks if the specified JOSE algorithm is supported by the default system JCA provider(s).static booleanisSupported(Algorithm alg, Provider provider) Checks if a JOSE algorithm is supported by the specified JCA provider.static booleanChecks if the specified JWE encryption method is supported by the default system JCA provider(s).static booleanisSupported(EncryptionMethod enc, Provider provider) Checks if a JWE encryption method is supported by the specified JCA provider.static booleanisSupported(JWEAlgorithm alg) Checks if the specified JWE algorithm is supported by the default system JCA provider(s).static booleanisSupported(JWEAlgorithm alg, Provider provider) Checks if a JWE algorithm is supported by the specified JCA provider.static booleanisSupported(JWSAlgorithm alg) Checks if the specified JWS algorithm is supported by the default system JCA provider(s).static booleanisSupported(JWSAlgorithm alg, Provider provider) Checks if a JWS algorithm is supported by the specified JCA provider.static booleanChecks if unlimited cryptographic strength is supported.
-
Method Details
-
isUnlimitedStrength
Checks if unlimited cryptographic strength is supported. If not download the appropriate jurisdiction policy files for your Java edition:- Returns:
trueif unlimited cryptographic strength is supported,falseif not.
-
isSupported
Checks if the specified JOSE algorithm is supported by the default system JCA provider(s).- Parameters:
alg- The JOSE algorithm. Must not benull.- Returns:
trueif the JOSE algorithm is supported, elsefalse.
-
isSupported
Checks if a JOSE algorithm is supported by the specified JCA provider.- Parameters:
alg- The JOSE algorithm. Must not benull.provider- The JCA provider. Must not benull.- Returns:
trueif the JOSE algorithm is supported, elsefalse.
-
isSupported
Checks if the specified JWS algorithm is supported by the default system JCA provider(s).- Parameters:
alg- The JWS algorithm. Must not benull.- Returns:
trueif the JWS algorithm is supported, elsefalse.
-
isSupported
Checks if a JWS algorithm is supported by the specified JCA provider.- Parameters:
alg- The JWS algorithm. Must not benull.provider- The JCA provider. Must not benull.- Returns:
trueif the JWS algorithm is supported, elsefalse.
-
isSupported
Checks if the specified JWE algorithm is supported by the default system JCA provider(s).- Parameters:
alg- The JWE algorithm. Must not benull.- Returns:
trueif the JWE algorithm is supported, elsefalse.
-
isSupported
Checks if a JWE algorithm is supported by the specified JCA provider.- Parameters:
alg- The JWE algorithm. Must not benull.provider- The JCA provider. Must not benull.- Returns:
trueif the JWE algorithm is supported, elsefalse.
-
isSupported
Checks if the specified JWE encryption method is supported by the default system JCA provider(s).- Parameters:
enc- The JWE encryption method. Must not benull.- Returns:
trueif the JWE algorithm is supported, elsefalse.
-
isSupported
Checks if a JWE encryption method is supported by the specified JCA provider.- Parameters:
enc- The JWE encryption method. Must not benull.provider- The JCA provider. Must not benull.- Returns:
trueif the JWE encryption method is supported, elsefalse.
-