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 Summary
ConstructorsConstructorDescriptionOAuth2AuthorizationServerMetadata(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 aOAuth2AuthorizationServerMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationEndpointrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated.Returns the value of thegrantTypesSupportedrecord component.final inthashCode()Returns a hash code value for this object.issuer()Returns the value of theissuerrecord component.Returns the value of theresponseModesSupportedrecord component.Returns the value of theresponseTypesSupportedrecord component.Returns the value of therevocationEndpointrecord component.Returns the value of therevocationEndpointAuthMethodsSupportedrecord component.Returns the value of thescopesSupportedrecord component.Returns the value of thetokenEndpointrecord component.Returns the value of thetokenEndpointAuthMethodsSupportedrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aOAuth2AuthorizationServerMetadatarecord class.- Parameters:
issuer- the value for theissuerrecord componenttokenEndpoint- the value for thetokenEndpointrecord componentauthorizationEndpoint- the value for theauthorizationEndpointrecord componentrevocationEndpoint- the value for therevocationEndpointrecord componentscopesSupported- the value for thescopesSupportedrecord componentresponseTypesSupported- the value for theresponseTypesSupportedrecord componentresponseModesSupported- the value for theresponseModesSupportedrecord componentgrantTypesSupported- the value for thegrantTypesSupportedrecord componenttokenEndpointAuthMethodsSupported- the value for thetokenEndpointAuthMethodsSupportedrecord componentrevocationEndpointAuthMethodsSupported- the value for therevocationEndpointAuthMethodsSupportedrecord component
-
-
Method Details
-
getRevocationEndpoint
Deprecated. -
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. -
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. -
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). -
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
tokenEndpoint
Returns the value of thetokenEndpointrecord component.- Returns:
- the value of the
tokenEndpointrecord component
-
authorizationEndpoint
Returns the value of theauthorizationEndpointrecord component.- Returns:
- the value of the
authorizationEndpointrecord component
-
revocationEndpoint
Returns the value of therevocationEndpointrecord component.- Returns:
- the value of the
revocationEndpointrecord component
-
scopesSupported
Returns the value of thescopesSupportedrecord component.- Returns:
- the value of the
scopesSupportedrecord component
-
responseTypesSupported
Returns the value of theresponseTypesSupportedrecord component.- Returns:
- the value of the
responseTypesSupportedrecord component
-
responseModesSupported
Returns the value of theresponseModesSupportedrecord component.- Returns:
- the value of the
responseModesSupportedrecord component
-
grantTypesSupported
Returns the value of thegrantTypesSupportedrecord component.- Returns:
- the value of the
grantTypesSupportedrecord component
-
tokenEndpointAuthMethodsSupported
Returns the value of thetokenEndpointAuthMethodsSupportedrecord component.- Returns:
- the value of the
tokenEndpointAuthMethodsSupportedrecord component
-
revocationEndpointAuthMethodsSupported
Returns the value of therevocationEndpointAuthMethodsSupportedrecord component.- Returns:
- the value of the
revocationEndpointAuthMethodsSupportedrecord component
-