Record Class OidcProviderMetadata

java.lang.Object
java.lang.Record
dev.relism.flash.ext.oidc.OidcProviderMetadata

public record OidcProviderMetadata(String authorizationEndpoint, String tokenEndpoint, String userinfoEndpoint, String jwksUri, String endSessionEndpoint) extends Record
OIDC provider endpoints discovered from {issuer}/.well-known/openid-configuration.

endSessionEndpoint() may be null — not all providers expose it (e.g. some Authelia configurations omit it).

  • Constructor Details

    • OidcProviderMetadata

      public OidcProviderMetadata(String authorizationEndpoint, String tokenEndpoint, String userinfoEndpoint, String jwksUri, String endSessionEndpoint)
      Creates an instance of a OidcProviderMetadata record class.
      Parameters:
      authorizationEndpoint - the value for the authorizationEndpoint record component
      tokenEndpoint - the value for the tokenEndpoint record component
      userinfoEndpoint - the value for the userinfoEndpoint record component
      jwksUri - the value for the jwksUri record component
      endSessionEndpoint - the value for the endSessionEndpoint 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.
    • 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
    • userinfoEndpoint

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

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

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