Class KeyPairGeneratorConfiguration
java.lang.Object
org.apache.nifi.web.security.configuration.KeyPairGeneratorConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
Fallback Key Pair Algorithm when standard algorithm not supported in current Security Providerprivate static final org.slf4j.Logger
private static final String
Standard Key Pair Algorithm for signing JSON Web Tokensprivate static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionJSON Web Token Key Pair Generator defaults to Ed25519 and falls back to RSA when current Security Providers do not support Ed25519.
-
Field Details
-
STANDARD_KEY_PAIR_ALGORITHM
Standard Key Pair Algorithm for signing JSON Web Tokens- See Also:
-
STANDARD_KEY_PAIR_ALGORITHM_FILTER
- See Also:
-
FALLBACK_KEY_PAIR_ALGORITHM
Fallback Key Pair Algorithm when standard algorithm not supported in current Security Provider- See Also:
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
KeyPairGeneratorConfiguration
public KeyPairGeneratorConfiguration()
-
-
Method Details
-
jwtKeyPairGenerator
JSON Web Token Key Pair Generator defaults to Ed25519 and falls back to RSA when current Security Providers do not support Ed25519. The fallback strategy supports security configurations that have not included Ed25519 as an approved algorithm. This strategy works with restricted providers such as those that have not incorporated algorithm approvals described in FIPS 186-5- Returns:
- Key Pair Generator for JSON Web Token signing
- Throws:
NoSuchAlgorithmException
- Thrown on failure to get Key Pair Generator for selected algorithm
-