Package io.a2a.spec
Record Class AuthorizationCodeOAuthFlow
java.lang.Object
java.lang.Record
io.a2a.spec.AuthorizationCodeOAuthFlow
public record AuthorizationCodeOAuthFlow(String authorizationUrl, String refreshUrl, Map<String,String> scopes, String tokenUrl)
extends Record
Configuration for the OAuth Authorization Code flow.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationUrlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therefreshUrlrecord component.scopes()Returns the value of thescopesrecord component.tokenUrl()Returns the value of thetokenUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthorizationCodeOAuthFlow
public AuthorizationCodeOAuthFlow(String authorizationUrl, String refreshUrl, Map<String, String> scopes, String tokenUrl) Creates an instance of aAuthorizationCodeOAuthFlowrecord class.- Parameters:
authorizationUrl- the value for theauthorizationUrlrecord componentrefreshUrl- the value for therefreshUrlrecord componentscopes- the value for thescopesrecord componenttokenUrl- the value for thetokenUrlrecord 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). -
authorizationUrl
Returns the value of theauthorizationUrlrecord component.- Returns:
- the value of the
authorizationUrlrecord component
-
refreshUrl
Returns the value of therefreshUrlrecord component.- Returns:
- the value of the
refreshUrlrecord component
-
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-
tokenUrl
Returns the value of thetokenUrlrecord component.- Returns:
- the value of the
tokenUrlrecord component
-