We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
OidcIdToken
1 parent d8043dc commit 8d470f0Copy full SHA for 8d470f0
oauth2/oauth2-core/src/main/java/org/springframework/security/oauth2/core/oidc/OidcIdToken.java
@@ -73,6 +73,23 @@ public Map<String, Object> getClaims() {
73
return this.claims;
74
}
75
76
+ @Override
77
+ public boolean equals(Object obj) {
78
+ if (this == obj) {
79
+ return true;
80
+ }
81
+ if (obj == null || this.getClass() != obj.getClass()) {
82
+ return false;
83
84
+ OidcIdToken that = (OidcIdToken) obj;
85
+ return this.getClaims().equals(that.getClaims());
86
87
+
88
89
+ public int hashCode() {
90
+ return this.getClaims().hashCode();
91
92
93
/**
94
* Create a {@link Builder} based on the given token value
95
* @param tokenValue the token value to use
0 commit comments