Record Class EphemeralStore.PendingAuthorization
java.lang.Object
java.lang.Record
org.apache.juneau.rest.client.mcp.auth.EphemeralStore.PendingAuthorization
- Record Components:
codeVerifier- The PKCEcode_verifierstring.expectedIssuer- The discovered issuer the callbackissparameter is validated against (SEP-2468). May benullwhen no issuer was discovered.createdAt- The instant the entry was stored.
- Enclosing class:
- EphemeralStore
public static record EphemeralStore.PendingAuthorization(String codeVerifier, URI expectedIssuer, Instant createdAt)
extends Record
A pending-authorization association awaiting the IdP loopback callback.
-
Constructor Summary
ConstructorsConstructorDescriptionPendingAuthorization(String codeVerifier, URI expectedIssuer, Instant createdAt) Creates an instance of aPendingAuthorizationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecodeVerifierrecord component.Returns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpectedIssuerrecord component.final inthashCode()Returns a hash code value for this object.toString()Redacts the PKCEcodeVerifierso it never reaches logs via this record'stoString()(mirrors theOAuthToken/McpTokenProviderredaction discipline).
-
Constructor Details
-
PendingAuthorization
Creates an instance of aPendingAuthorizationrecord class.- Parameters:
codeVerifier- the value for thecodeVerifierrecord componentexpectedIssuer- the value for theexpectedIssuerrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
toString
Redacts the PKCEcodeVerifierso it never reaches logs via this record'stoString()(mirrors theOAuthToken/McpTokenProviderredaction discipline). -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
codeVerifier
Returns the value of thecodeVerifierrecord component.- Returns:
- the value of the
codeVerifierrecord component
-
expectedIssuer
Returns the value of theexpectedIssuerrecord component.- Returns:
- the value of the
expectedIssuerrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-