Record Class McpClientRegistration

java.lang.Object
java.lang.Record
org.apache.juneau.rest.client.mcp.auth.McpClientRegistration
Record Components:
clientId - The registered client_id. Never null.
clientSecret - The issued client_secret, if the AS issued one (absent for a public/native client).
clientSecretExpiresAt - The instant the client_secret expires, if the AS returned a non-zero client_secret_expires_at.
registrationAccessToken - The RFC 7592 registration access token, if the AS issued one.
registrationClientUri - The RFC 7592 registration client URI, if the AS returned one.
issuer - The authorization server issuer these credentials were registered with (the SEP-2352 key). Never null.
redirectUris - The redirect URIs that were registered, in registration order. Never null.
applicationType - The declared application_type. Never null.
extras - Any non-standard fields the AS returned. Read-only map. Never null.

public record McpClientRegistration(String clientId, Optional<String> clientSecret, Optional<Instant> clientSecretExpiresAt, Optional<String> registrationAccessToken, Optional<URI> registrationClientUri, URI issuer, List<URI> redirectUris, McpApplicationType applicationType, Map<String,Object> extras) extends Record
Immutable result of a Dynamic Client Registration (SEP-837) round-trip — the client credentials and metadata an authorization server issued, keyed by the AS issuer for SEP-2352 credential binding.

Never log clientSecret / registrationAccessToken. toString() redacts both secret-bearing fields (mirroring the OAuthToken / KeyedSecret redaction discipline) so credential material never reaches logs via this record's auto-generated form.

Since:
10.0.0