Class SmallryeJwtDevModeProcessor
java.lang.Object
io.quarkus.smallrye.jwt.deployment.SmallryeJwtDevModeProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidgenerateSignKeys(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.DevServicesResultBuildItem> devServices, io.quarkus.deployment.builditem.LiveReloadBuildItem liveReloadBuildItem, io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem curateOutcomeBuildItem, Optional<GeneratePersistentDevModeJwtKeysBuildItem> generatePersistentDevModeJwtKeysBuildItem, Optional<GenerateEncryptedDevModeJwtKeysBuildItem> generateEncryptedDevModeJwtKeysBuildItem) This build step generates an RSA-256 key pair for development and test modes.static FilegetBuildDir(io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem curateOutcomeBuildItem)
-
Field Details
-
MP_JWT_VERIFY_PUBLIC_KEY
- See Also:
-
SMALLRYE_JWT_SIGN_KEY
- See Also:
-
DEV_PRIVATE_KEY_PEM
- See Also:
-
DEV_PUBLIC_KEY_PEM
- See Also:
-
-
Constructor Details
-
SmallryeJwtDevModeProcessor
public SmallryeJwtDevModeProcessor()
-
-
Method Details
-
generateSignKeys
void generateSignKeys(io.quarkus.deployment.annotations.BuildProducer<io.quarkus.deployment.builditem.DevServicesResultBuildItem> devServices, io.quarkus.deployment.builditem.LiveReloadBuildItem liveReloadBuildItem, io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem curateOutcomeBuildItem, Optional<GeneratePersistentDevModeJwtKeysBuildItem> generatePersistentDevModeJwtKeysBuildItem, Optional<GenerateEncryptedDevModeJwtKeysBuildItem> generateEncryptedDevModeJwtKeysBuildItem) throws GeneralSecurityException, IOException This build step generates an RSA-256 key pair for development and test modes.The key pair is generated only if the user has not set any of the
*.keyor*.locationproperties.Additionally, if the user has not provided the
mp.jwt.verify.issuerandsmallrye.jwt.new-token.issuerproperties, this build step will add a default issuer, regardless of the above condition.- Throws:
NoSuchAlgorithmException- if RSA-256 key generation fails.IOException- if persistent key storage failsGeneralSecurityException
-
getBuildDir
public static File getBuildDir(io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem curateOutcomeBuildItem)
-