Record Class McpOauthRequiredStaticClientConfig
java.lang.Object
java.lang.Record
com.github.copilot.generated.McpOauthRequiredStaticClientConfig
-
Constructor Summary
ConstructorsConstructorDescriptionMcpOauthRequiredStaticClientConfig(String clientId, String clientSecret, Boolean publicClient, String grantType) Creates a static OAuth client configuration without an explicit scope.McpOauthRequiredStaticClientConfig(String clientId, String clientSecret, Boolean publicClient, String grantType, String scope) Creates an instance of aMcpOauthRequiredStaticClientConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegrantTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepublicClientrecord component.scope()Returns the value of thescoperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
McpOauthRequiredStaticClientConfig
public McpOauthRequiredStaticClientConfig(String clientId, String clientSecret, Boolean publicClient, String grantType) Creates a static OAuth client configuration without an explicit scope.- Parameters:
clientId- OAuth client ID for the serverclientSecret- Optional OAuth client secret for confidential static clients, when the runtime can resolve onepublicClient- Whether this is a public OAuth clientgrantType- Optional non-default OAuth grant type. When set to 'client_credentials', the OAuth flow runs headlessly using the client_id + keychain-stored secret (no browser, no callback server).
-
McpOauthRequiredStaticClientConfig
public McpOauthRequiredStaticClientConfig(String clientId, String clientSecret, Boolean publicClient, String grantType, String scope) Creates an instance of aMcpOauthRequiredStaticClientConfigrecord class.- Parameters:
clientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentpublicClient- the value for thepublicClientrecord componentgrantType- the value for thegrantTyperecord componentscope- the value for thescoperecord 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). -
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
publicClient
Returns the value of thepublicClientrecord component.- Returns:
- the value of the
publicClientrecord component
-
grantType
Returns the value of thegrantTyperecord component.- Returns:
- the value of the
grantTyperecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-