Package io.a2a.spec
Record Class OAuthFlows
java.lang.Object
java.lang.Record
io.a2a.spec.OAuthFlows
public record OAuthFlows(AuthorizationCodeOAuthFlow authorizationCode, ClientCredentialsOAuthFlow clientCredentials, ImplicitOAuthFlow implicit, PasswordOAuthFlow password)
extends Record
Defines the configuration for the supported OAuth 2.0 flows.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOAuthFlows(AuthorizationCodeOAuthFlow authorizationCode, ClientCredentialsOAuthFlow clientCredentials, ImplicitOAuthFlow implicit, PasswordOAuthFlow password) Creates an instance of aOAuthFlowsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthorizationCoderecord component.Returns the value of theclientCredentialsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.implicit()Returns the value of theimplicitrecord component.password()Returns the value of thepasswordrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OAuthFlows
public OAuthFlows(AuthorizationCodeOAuthFlow authorizationCode, ClientCredentialsOAuthFlow clientCredentials, ImplicitOAuthFlow implicit, PasswordOAuthFlow password) Creates an instance of aOAuthFlowsrecord class.- Parameters:
authorizationCode- the value for theauthorizationCoderecord componentclientCredentials- the value for theclientCredentialsrecord componentimplicit- the value for theimplicitrecord componentpassword- the value for thepasswordrecord 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). -
authorizationCode
Returns the value of theauthorizationCoderecord component.- Returns:
- the value of the
authorizationCoderecord component
-
clientCredentials
Returns the value of theclientCredentialsrecord component.- Returns:
- the value of the
clientCredentialsrecord component
-
implicit
Returns the value of theimplicitrecord component.- Returns:
- the value of the
implicitrecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-