Class SmallryeJwtDevModeProcessor

java.lang.Object
io.quarkus.smallrye.jwt.deployment.SmallryeJwtDevModeProcessor

public class SmallryeJwtDevModeProcessor extends Object
  • Field Details

  • 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 *.key or *.location properties.

      Additionally, if the user has not provided the mp.jwt.verify.issuer and smallrye.jwt.new-token.issuer properties, 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 fails
      GeneralSecurityException
    • getBuildDir

      public static File getBuildDir(io.quarkus.deployment.pkg.builditem.CurateOutcomeBuildItem curateOutcomeBuildItem)