Record Class OidcDiscoveryDocument

java.lang.Object
java.lang.Record
io.fluxzero.idp.client.OidcDiscoveryDocument
Record Components:
issuer - issuer advertised by the tenant
authorizationEndpoint - endpoint used to start authorization-code flow
tokenEndpoint - endpoint used to exchange authorization codes
jwksUri - endpoint containing signing keys
userInfoEndpoint - userinfo endpoint when advertised
endSessionEndpoint - logout endpoint when advertised
json - complete discovery document

public record OidcDiscoveryDocument(String issuer, String authorizationEndpoint, String tokenEndpoint, String jwksUri, String userInfoEndpoint, String endSessionEndpoint, com.fasterxml.jackson.databind.JsonNode json) extends Record
OIDC discovery metadata used by Fluxzero application authentication helpers.

The typed fields cover the endpoints that Fluxzero applications need for the BFF flow. The raw JSON is retained so applications or future client code can read provider-specific metadata without changing this record first.

  • Constructor Details

    • OidcDiscoveryDocument

      public OidcDiscoveryDocument(String issuer, String authorizationEndpoint, String tokenEndpoint, String jwksUri, String userInfoEndpoint, String endSessionEndpoint, com.fasterxml.jackson.databind.JsonNode json)
      Creates an instance of a OidcDiscoveryDocument record class.
      Parameters:
      issuer - the value for the issuer record component
      authorizationEndpoint - the value for the authorizationEndpoint record component
      tokenEndpoint - the value for the tokenEndpoint record component
      jwksUri - the value for the jwksUri record component
      userInfoEndpoint - the value for the userInfoEndpoint record component
      endSessionEndpoint - the value for the endSessionEndpoint record component
      json - the value for the json record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
    • issuer

      public String issuer()
      Returns the value of the issuer record component.
      Returns:
      the value of the issuer record component
    • authorizationEndpoint

      public String authorizationEndpoint()
      Returns the value of the authorizationEndpoint record component.
      Returns:
      the value of the authorizationEndpoint record component
    • tokenEndpoint

      public String tokenEndpoint()
      Returns the value of the tokenEndpoint record component.
      Returns:
      the value of the tokenEndpoint record component
    • jwksUri

      public String jwksUri()
      Returns the value of the jwksUri record component.
      Returns:
      the value of the jwksUri record component
    • userInfoEndpoint

      public String userInfoEndpoint()
      Returns the value of the userInfoEndpoint record component.
      Returns:
      the value of the userInfoEndpoint record component
    • endSessionEndpoint

      public String endSessionEndpoint()
      Returns the value of the endSessionEndpoint record component.
      Returns:
      the value of the endSessionEndpoint record component
    • json

      public com.fasterxml.jackson.databind.JsonNode json()
      Returns the value of the json record component.
      Returns:
      the value of the json record component