From 86997bc0ac3ffe0c0b43600f8a4b12786c5482ab Mon Sep 17 00:00:00 2001 From: Joe Grandja Date: Thu, 12 Aug 2021 17:06:13 -0400 Subject: [PATCH] Polish RegisteredClient --- .../oauth2/server/authorization/client/RegisteredClient.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java b/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java index 94ff1ba2..ad52d0ca 100644 --- a/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java +++ b/oauth2-authorization-server/src/main/java/org/springframework/security/oauth2/server/authorization/client/RegisteredClient.java @@ -90,10 +90,11 @@ public class RegisteredClient implements Serializable { } /** - * Returns the client secret. + * Returns the client secret or {@code null} if not available. * - * @return the client secret + * @return the client secret or {@code null} if not available */ + @Nullable public String getClientSecret() { return this.clientSecret; }