Record Class OAuth2AuthorizationServerMetadata

java.lang.Object
java.lang.Record
com.atlassian.oauth2.provider.api.external.OAuth2AuthorizationServerMetadata

public record OAuth2AuthorizationServerMetadata(String issuer, String tokenEndpoint, String authorizationEndpoint, String revocationEndpoint, Set<String> scopesSupported, Set<String> responseTypesSupported, Set<String> responseModesSupported, Set<String> grantTypesSupported, Set<String> tokenEndpointAuthMethodsSupported, Set<String> revocationEndpointAuthMethodsSupported) extends Record
Metadata object following spec: https://datatracker.ietf.org/doc/html/rfc8414
  • Constructor Details

    • OAuth2AuthorizationServerMetadata

      public OAuth2AuthorizationServerMetadata(String issuer, String tokenEndpoint, String authorizationEndpoint, String revocationEndpoint, Set<String> scopesSupported, Set<String> responseTypesSupported, Set<String> responseModesSupported, Set<String> grantTypesSupported, Set<String> tokenEndpointAuthMethodsSupported, Set<String> revocationEndpointAuthMethodsSupported)
      Creates an instance of a OAuth2AuthorizationServerMetadata record class.
      Parameters:
      issuer - the value for the issuer record component
      tokenEndpoint - the value for the tokenEndpoint record component
      authorizationEndpoint - the value for the authorizationEndpoint record component
      revocationEndpoint - the value for the revocationEndpoint record component
      scopesSupported - the value for the scopesSupported record component
      responseTypesSupported - the value for the responseTypesSupported record component
      responseModesSupported - the value for the responseModesSupported record component
      grantTypesSupported - the value for the grantTypesSupported record component
      tokenEndpointAuthMethodsSupported - the value for the tokenEndpointAuthMethodsSupported record component
      revocationEndpointAuthMethodsSupported - the value for the revocationEndpointAuthMethodsSupported record component
  • Method Details

    • getRevocationEndpoint

      @Deprecated public String getRevocationEndpoint()
      Deprecated.
    • 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
    • tokenEndpoint

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

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

      public String revocationEndpoint()
      Returns the value of the revocationEndpoint record component.
      Returns:
      the value of the revocationEndpoint record component
    • scopesSupported

      public Set<String> scopesSupported()
      Returns the value of the scopesSupported record component.
      Returns:
      the value of the scopesSupported record component
    • responseTypesSupported

      public Set<String> responseTypesSupported()
      Returns the value of the responseTypesSupported record component.
      Returns:
      the value of the responseTypesSupported record component
    • responseModesSupported

      public Set<String> responseModesSupported()
      Returns the value of the responseModesSupported record component.
      Returns:
      the value of the responseModesSupported record component
    • grantTypesSupported

      public Set<String> grantTypesSupported()
      Returns the value of the grantTypesSupported record component.
      Returns:
      the value of the grantTypesSupported record component
    • tokenEndpointAuthMethodsSupported

      public Set<String> tokenEndpointAuthMethodsSupported()
      Returns the value of the tokenEndpointAuthMethodsSupported record component.
      Returns:
      the value of the tokenEndpointAuthMethodsSupported record component
    • revocationEndpointAuthMethodsSupported

      public Set<String> revocationEndpointAuthMethodsSupported()
      Returns the value of the revocationEndpointAuthMethodsSupported record component.
      Returns:
      the value of the revocationEndpointAuthMethodsSupported record component