mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-01 09:42:13 +00:00
ClientSettings equals, hashCode, toString
Issue gh-16382
This commit is contained in:
parent
2665a92107
commit
b0a4dcb89e
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
package org.springframework.security.oauth2.client.registration;
|
package org.springframework.security.oauth2.client.registration;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A facility for client configuration settings.
|
* A facility for client configuration settings.
|
||||||
*
|
*
|
||||||
@ -34,6 +36,27 @@ public final class ClientSettings {
|
|||||||
return this.requireProofKey;
|
return this.requireProofKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(o instanceof ClientSettings that)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return this.requireProofKey == that.requireProofKey;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hashCode(this.requireProofKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ClientSettings{" + "requireProofKey=" + this.requireProofKey + '}';
|
||||||
|
}
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
return new Builder();
|
return new Builder();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user