jwt 提醒不用于生产

sas-2.1.1
shengzhaoli.shengz 3 years ago
parent 34e9509925
commit 78686ff74f

@ -115,7 +115,7 @@ public class OAuth2ServerConfiguration {
ECKeyGenerator keyGenerator = new ECKeyGenerator(Curve.P_256);
keyGenerator.keyID(RESOURCE_ID);
JWK jwk = keyGenerator.generate();
System.out.println("\n Use auto-generated jwk: " + jwk.toJSONString());
System.out.println("\n Use auto-generated jwk: " + jwk.toJSONString() + "\nDO-NOT-USE-PRODUCTION");
JWKSet jwkSet = new JWKSet(jwk);
return new ImmutableJWKSet<>(jwkSet);

Loading…
Cancel
Save