From ed545941c9c8a14990f8d6b60c42d120dfbd067c Mon Sep 17 00:00:00 2001 From: James Date: Fri, 25 Jan 2019 14:15:55 +0800 Subject: [PATCH] parameter 'pricipal' is never used parameter 'pricipal' is never used --- .../src/main/java/sample/JwkSetConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java b/samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java index fb0e317ca7..330eee82f7 100644 --- a/samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java +++ b/samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java @@ -169,7 +169,7 @@ class JwkSetEndpoint { @GetMapping("/.well-known/jwks.json") @ResponseBody - public Map getKey(Principal principal) { + public Map getKey() { RSAPublicKey publicKey = (RSAPublicKey) this.keyPair.getPublic(); RSAKey key = new RSAKey.Builder(publicKey).build(); return new JWKSet(key).toJSONObject();