Package io.trino.server.security.oauth2
Record Class OAuth2ServerConfigProvider.OAuth2ServerConfig
java.lang.Object
java.lang.Record
io.trino.server.security.oauth2.OAuth2ServerConfigProvider.OAuth2ServerConfig
- Enclosing interface:
OAuth2ServerConfigProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenIssuerrecord component.authUrl()Returns the value of theauthUrlrecord component.Returns the value of theendSessionUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.jwksUrl()Returns the value of thejwksUrlrecord component.tokenUrl()Returns the value of thetokenUrlrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserinfoUrlrecord component.
-
Constructor Details
-
OAuth2ServerConfig
public OAuth2ServerConfig(Optional<String> accessTokenIssuer, URI authUrl, URI tokenUrl, URI jwksUrl, Optional<URI> userinfoUrl, Optional<URI> endSessionUrl) Creates an instance of aOAuth2ServerConfigrecord class.- Parameters:
accessTokenIssuer- the value for theaccessTokenIssuerrecord componentauthUrl- the value for theauthUrlrecord componenttokenUrl- the value for thetokenUrlrecord componentjwksUrl- the value for thejwksUrlrecord componentuserinfoUrl- the value for theuserinfoUrlrecord componentendSessionUrl- the value for theendSessionUrlrecord component
-
-
Method Details
-
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). -
accessTokenIssuer
Returns the value of theaccessTokenIssuerrecord component.- Returns:
- the value of the
accessTokenIssuerrecord component
-
authUrl
Returns the value of theauthUrlrecord component.- Returns:
- the value of the
authUrlrecord component
-
tokenUrl
Returns the value of thetokenUrlrecord component.- Returns:
- the value of the
tokenUrlrecord component
-
jwksUrl
Returns the value of thejwksUrlrecord component.- Returns:
- the value of the
jwksUrlrecord component
-
userinfoUrl
Returns the value of theuserinfoUrlrecord component.- Returns:
- the value of the
userinfoUrlrecord component
-
endSessionUrl
Returns the value of theendSessionUrlrecord component.- Returns:
- the value of the
endSessionUrlrecord component
-