Package com.tnsai.mcp.auth
Record Class McpClientRegistration.RegistrationResponse
java.lang.Object
java.lang.Record
com.tnsai.mcp.auth.McpClientRegistration.RegistrationResponse
- Record Components:
clientId- the assigned client IDclientSecret- the assigned client secret, null for public clientsclientName- the registered client nameredirectUris- the registered redirect URIs
- Enclosing class:
McpClientRegistration
public static record McpClientRegistration.RegistrationResponse(String clientId, String clientSecret, String clientName, List<String> redirectUris)
extends Record
Client registration response as defined by RFC 7591.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.Returns the value of theclientNamerecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theredirectUrisrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegistrationResponse
public RegistrationResponse(String clientId, String clientSecret, String clientName, List<String> redirectUris) Creates an instance of aRegistrationResponserecord class.- Parameters:
clientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentclientName- the value for theclientNamerecord componentredirectUris- the value for theredirectUrisrecord 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). -
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
-
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
-