Record Class McpAuthRequest
java.lang.Object
java.lang.Record
com.github.copilot.rpc.McpAuthRequest
public record McpAuthRequest(String requestId, String serverName, String serverUrl, McpOauthRequestReason reason, McpOauthWWWAuthenticateParams wwwAuthenticateParams, String resourceMetadata, McpOauthRequiredStaticClientConfig staticClientConfig)
extends Record
MCP OAuth request that the SDK host can satisfy with a host-acquired token.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionMcpAuthRequest(String requestId, String serverName, String serverUrl, McpOauthRequestReason reason, McpOauthWWWAuthenticateParams wwwAuthenticateParams, String resourceMetadata, McpOauthRequiredStaticClientConfig staticClientConfig) Creates an instance of aMcpAuthRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of therequestIdrecord component.Returns the value of theresourceMetadatarecord component.Returns the value of theserverNamerecord component.Returns the value of theserverUrlrecord component.Returns the value of thestaticClientConfigrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewwwAuthenticateParamsrecord component.
-
Constructor Details
-
McpAuthRequest
public McpAuthRequest(String requestId, String serverName, String serverUrl, McpOauthRequestReason reason, McpOauthWWWAuthenticateParams wwwAuthenticateParams, String resourceMetadata, McpOauthRequiredStaticClientConfig staticClientConfig) Creates an instance of aMcpAuthRequestrecord class.- Parameters:
requestId- the value for therequestIdrecord componentserverName- the value for theserverNamerecord componentserverUrl- the value for theserverUrlrecord componentreason- the value for thereasonrecord componentwwwAuthenticateParams- the value for thewwwAuthenticateParamsrecord componentresourceMetadata- the value for theresourceMetadatarecord componentstaticClientConfig- the value for thestaticClientConfigrecord 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). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
serverUrl
Returns the value of theserverUrlrecord component.- Returns:
- the value of the
serverUrlrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
wwwAuthenticateParams
Returns the value of thewwwAuthenticateParamsrecord component.- Returns:
- the value of the
wwwAuthenticateParamsrecord component
-
resourceMetadata
Returns the value of theresourceMetadatarecord component.- Returns:
- the value of the
resourceMetadatarecord component
-
staticClientConfig
Returns the value of thestaticClientConfigrecord component.- Returns:
- the value of the
staticClientConfigrecord component
-