mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-08-02 13:48:15 +02:00
wip - RsaKeyProperties for keys
This commit is contained in:
parent
b40ccb90cb
commit
981715a3c4
@ -43,6 +43,8 @@ public class JwtService implements JwtServiceInterface {
|
|||||||
private final KeyPair keyPair;
|
private final KeyPair keyPair;
|
||||||
private final boolean v2Enabled;
|
private final boolean v2Enabled;
|
||||||
|
|
||||||
|
// todo: Create JWTConfig class to manage JWT properties. Use RsaKeyProperties for key generation.
|
||||||
|
|
||||||
public JwtService(@Qualifier("v2Enabled") boolean v2Enabled) {
|
public JwtService(@Qualifier("v2Enabled") boolean v2Enabled) {
|
||||||
this.v2Enabled = v2Enabled;
|
this.v2Enabled = v2Enabled;
|
||||||
keyPair = Jwts.SIG.RS256.keyPair().build();
|
keyPair = Jwts.SIG.RS256.keyPair().build();
|
||||||
|
Loading…
Reference in New Issue
Block a user