Record Class OAuthFlows_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.OAuthFlows_v0_3
public record OAuthFlows_v0_3(AuthorizationCodeOAuthFlow_v0_3 authorizationCode, ClientCredentialsOAuthFlow_v0_3 clientCredentials, ImplicitOAuthFlow_v0_3 implicit, PasswordOAuthFlow_v0_3 password)
extends Record
Defines the configuration for the supported OAuth 2.0 flows.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOAuthFlows_v0_3(AuthorizationCodeOAuthFlow_v0_3 authorizationCode, ClientCredentialsOAuthFlow_v0_3 clientCredentials, ImplicitOAuthFlow_v0_3 implicit, PasswordOAuthFlow_v0_3 password) Creates an instance of aOAuthFlows_v0_3record 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_v0_3
public OAuthFlows_v0_3(AuthorizationCodeOAuthFlow_v0_3 authorizationCode, ClientCredentialsOAuthFlow_v0_3 clientCredentials, ImplicitOAuthFlow_v0_3 implicit, PasswordOAuthFlow_v0_3 password) Creates an instance of aOAuthFlows_v0_3record 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
-
hashCode
-
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
-