parameter 'pricipal' is never used

parameter 'pricipal' is never used
This commit is contained in:
James 2019-01-25 14:15:55 +08:00 committed by Rob Winch
parent 5c2ee09bc3
commit ed545941c9
1 changed files with 1 additions and 1 deletions

View File

@ -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();