浏览代码

parameter 'pricipal' is never used

parameter 'pricipal' is never used
James 6 年之前
父节点
当前提交
ed545941c9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java

+ 1 - 1
samples/boot/oauth2authorizationserver/src/main/java/sample/JwkSetConfiguration.java

@@ -169,7 +169,7 @@ class JwkSetEndpoint {
 
 	@GetMapping("/.well-known/jwks.json")
 	@ResponseBody
-	public Map<String, Object> getKey(Principal principal) {
+	public Map<String, Object> getKey() {
 		RSAPublicKey publicKey = (RSAPublicKey) this.keyPair.getPublic();
 		RSAKey key = new RSAKey.Builder(publicKey).build();
 		return new JWKSet(key).toJSONObject();