Record Class EphemeralStore.PendingAuthorization

java.lang.Object
java.lang.Record
org.apache.juneau.rest.client.mcp.auth.EphemeralStore.PendingAuthorization
Record Components:
codeVerifier - The PKCE code_verifier string.
expectedIssuer - The discovered issuer the callback iss parameter is validated against (SEP-2468). May be null when 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 Details

    • PendingAuthorization

      public PendingAuthorization(String codeVerifier, URI expectedIssuer, Instant createdAt)
      Creates an instance of a PendingAuthorization record class.
      Parameters:
      codeVerifier - the value for the codeVerifier record component
      expectedIssuer - the value for the expectedIssuer record component
      createdAt - the value for the createdAt record component
  • Method Details

    • toString

      public String toString()
      Redacts the PKCE codeVerifier so it never reaches logs via this record's toString() (mirrors the OAuthToken / McpTokenProvider redaction discipline).
      Specified by:
      toString in class Record
      Returns:
      A redacted string form disclosing only non-secret metadata.
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • codeVerifier

      public String codeVerifier()
      Returns the value of the codeVerifier record component.
      Returns:
      the value of the codeVerifier record component
    • expectedIssuer

      public URI expectedIssuer()
      Returns the value of the expectedIssuer record component.
      Returns:
      the value of the expectedIssuer record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component