-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39650 from michalvavrik/feature/migrate-smallrye-…
…jwt-config-classes-to-configmapping Migrate the Quarkus SmallRye JWT config classes to `@ConfigMapping`
- Loading branch information
Showing
5 changed files
with
24 additions
and
20 deletions.
There are no files selected for viewing
16 changes: 9 additions & 7 deletions
16
...ployment/src/main/java/io/quarkus/smallrye/jwt/deployment/SmallRyeJwtBuildTimeConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,25 @@ | ||
package io.quarkus.smallrye.jwt.deployment; | ||
|
||
import io.quarkus.runtime.annotations.ConfigItem; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
|
||
/** | ||
* deployment configuration | ||
*/ | ||
@ConfigRoot(name = "smallrye-jwt") | ||
public class SmallRyeJwtBuildTimeConfig { | ||
@ConfigMapping(prefix = "quarkus.smallrye-jwt") | ||
@ConfigRoot | ||
public interface SmallRyeJwtBuildTimeConfig { | ||
|
||
/** | ||
* The MP-JWT configuration object | ||
*/ | ||
@ConfigItem(defaultValue = "true") | ||
public boolean enabled = true; | ||
@WithDefault("true") | ||
boolean enabled(); | ||
|
||
/** | ||
* The name of the {@linkplain java.security.Provider} that supports SHA256withRSA signatures | ||
*/ | ||
@ConfigItem(defaultValue = "SunRsaSign") | ||
public String rsaSigProvider; | ||
@WithDefault("SunRsaSign") | ||
String rsaSigProvider(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters