Package com.tnsai.mcp.auth
Record Class McpClientRegistration.RegistrationRequest
java.lang.Object
java.lang.Record
com.tnsai.mcp.auth.McpClientRegistration.RegistrationRequest
- Record Components:
clientName- the human-readable client nameredirectUris- list of allowed redirect URIsgrantTypes- list of requested grant typesresponseTypes- list of requested response typestokenEndpointAuthMethod- the authentication method, "none" for public clients
- Enclosing class:
McpClientRegistration
public static record McpClientRegistration.RegistrationRequest(String clientName, List<String> redirectUris, List<String> grantTypes, List<String> responseTypes, String tokenEndpointAuthMethod)
extends Record
Client registration request as defined by RFC 7591.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegrantTypesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theredirectUrisrecord component.Returns the value of theresponseTypesrecord component.Returns the value of thetokenEndpointAuthMethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegistrationRequest
public RegistrationRequest(String clientName, List<String> redirectUris, List<String> grantTypes, List<String> responseTypes, String tokenEndpointAuthMethod) Creates an instance of aRegistrationRequestrecord class.- Parameters:
clientName- the value for theclientNamerecord componentredirectUris- the value for theredirectUrisrecord componentgrantTypes- the value for thegrantTypesrecord componentresponseTypes- the value for theresponseTypesrecord componenttokenEndpointAuthMethod- the value for thetokenEndpointAuthMethodrecord 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). -
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
redirectUris
Returns the value of theredirectUrisrecord component.- Returns:
- the value of the
redirectUrisrecord component
-
grantTypes
Returns the value of thegrantTypesrecord component.- Returns:
- the value of the
grantTypesrecord component
-
responseTypes
Returns the value of theresponseTypesrecord component.- Returns:
- the value of the
responseTypesrecord component
-
tokenEndpointAuthMethod
Returns the value of thetokenEndpointAuthMethodrecord component.- Returns:
- the value of the
tokenEndpointAuthMethodrecord component
-