Skip to content

Commit 25afd2e

Browse files
rwinchkwondh5217
authored andcommitted
Add AuthorizationGrantType.toString()
This adds AuthorizationGrantType.toString() which makes debuging easier. In particular, it will help when performing unit tests which validate the AuthorizationGrantType. Issue spring-projectsgh-16382 Signed-off-by: Daeho Kwon <[email protected]>
1 parent e8a53fd commit 25afd2e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/AuthorizationGrantType.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,9 @@ public int hashCode() {
111111
return this.getValue().hashCode();
112112
}
113113

114+
@Override
115+
public String toString() {
116+
return "AuthorizationGrantType{" + "value='" + this.value + '\'' + '}';
117+
}
118+
114119
}

0 commit comments

Comments
 (0)