Record Class JwksFetchServiceClient.FetchOutcome
java.lang.Object
java.lang.Record
io.confluent.kafka.server.plugins.auth.oauth.JwksFetchServiceClient.FetchOutcome
- Enclosing class:
JwksFetchServiceClient
public static record JwksFetchServiceClient.FetchOutcome(org.jose4j.jwk.JsonWebKeySet keySet, JwksFetchServiceClient.FetchFailureReason failureReason)
extends Record
Outcome of a
JwksFetchServiceClient.fetchJwks(String) call: exactly one of keySet (success) or
failureReason (failure) is non-null. Lets callers tag failures by reason rather than
collapsing every error to null.-
Constructor Summary
ConstructorsConstructorDescriptionFetchOutcome(org.jose4j.jwk.JsonWebKeySet keySet, JwksFetchServiceClient.FetchFailureReason failureReason) Creates an instance of aFetchOutcomerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefailureReasonrecord component.final inthashCode()Returns a hash code value for this object.booleanorg.jose4j.jwk.JsonWebKeySetkeySet()Returns the value of thekeySetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FetchOutcome
public FetchOutcome(org.jose4j.jwk.JsonWebKeySet keySet, JwksFetchServiceClient.FetchFailureReason failureReason) Creates an instance of aFetchOutcomerecord class.- Parameters:
keySet- the value for thekeySetrecord componentfailureReason- the value for thefailureReasonrecord component
-
-
Method Details
-
isSuccess
public boolean isSuccess() -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
keySet
public org.jose4j.jwk.JsonWebKeySet keySet()Returns the value of thekeySetrecord component.- Returns:
- the value of the
keySetrecord component
-
failureReason
Returns the value of thefailureReasonrecord component.- Returns:
- the value of the
failureReasonrecord component
-