Record Class OidcMetadata
java.lang.Object
java.lang.Record
org.apache.juneau.rest.auth.oauth.oidc.OidcMetadata
- Record Components:
issuer- TheissuerURI. Nevernull.tokenEndpoint- Thetoken_endpointURI.- Theauthorization_endpointURI. May benullfor pure machine-to-machine IdPs.introspectionEndpoint- The RFC 7662 introspection endpoint URI. May benull.jwksUri- Thejwks_uriURI.userinfoEndpoint- The OIDCuserinfo_endpointURI. May benull.endSessionEndpoint- The OIDC end-session endpoint URI. May benull.supportedScopes- Scopes the IdP advertises support for. May be empty.extras- Unknown / IdP-specific fields. Read-only map.
public record OidcMetadata(URI issuer, URI tokenEndpoint, URI authorizationEndpoint, URI introspectionEndpoint, URI jwksUri, URI userinfoEndpoint, URI endSessionEndpoint, Set<String> supportedScopes, Map<String,Object> extras)
extends Record
Immutable record produced by
OidcDiscoveryClient carrying the metadata fields a Juneau OAuth /
OIDC consumer typically needs.
Unknown fields (IdP-specific extensions) are preserved in extras() as a read-only
Map<String,Object>.
- Since:
- 10.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationEndpointrecord component.booleanReturns whether the authorization server advertisesauthorization_response_iss_parameter_supported(RFC 9207).Returns the value of theendSessionEndpointrecord component.final booleanIndicates whether some other object is "equal to" this one.extras()Returns the value of theextrasrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theintrospectionEndpointrecord component.issuer()Returns the value of theissuerrecord component.jwksUri()Returns the value of thejwksUrirecord component.Returns the value of thesupportedScopesrecord component.Returns the value of thetokenEndpointrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserinfoEndpointrecord component.
-
Constructor Details
-
Method Details
-
authorizationResponseIssParameterSupported
Returns whether the authorization server advertisesauthorization_response_iss_parameter_supported(RFC 9207).When
true, a compliant client MUST reject an authorization response that omits theissparameter.- Returns:
true if theauthorization_response_iss_parameter_supportedextra is present and set totrue.
-
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
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
-
introspectionEndpoint
Returns the value of theintrospectionEndpointrecord component.- Returns:
- the value of the
introspectionEndpointrecord component
-
jwksUri
Returns the value of thejwksUrirecord component.- Returns:
- the value of the
jwksUrirecord component
-
userinfoEndpoint
Returns the value of theuserinfoEndpointrecord component.- Returns:
- the value of the
userinfoEndpointrecord component
-
endSessionEndpoint
Returns the value of theendSessionEndpointrecord component.- Returns:
- the value of the
endSessionEndpointrecord component
-
supportedScopes
Returns the value of thesupportedScopesrecord component.- Returns:
- the value of the
supportedScopesrecord component
-
extras
Returns the value of theextrasrecord component.- Returns:
- the value of the
extrasrecord component
-