Record Class ClientRequest
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.v1.generated.model.ClientRequest
- Record Components:
clientId- Public identifier of the client; it must contain a non-blank character.name- Human readable name; it must contain a non-blank character.confidential- Whether the client can keep a secret. Defaults to false.authMethods- Client authentication methods. Accepted values: client_secret_basic, client_secret_post, none, private_key_jwt (needs jwks or jwkSetUrl), tls_client_auth (needs tlsClientAuthSubjectDn) and self_signed_tls_client_auth (needs jwks or jwkSetUrl). Only a client with a client_secret_* method is given a generated secret.grantTypes- Allowed grant types. Accepted values: authorization_code, refresh_token, client_credentials, urn:ietf:params:oauth:grant-type:device_code and urn:ietf:params:oauth:grant-type:token-exchange. The legacy implicit grant is refused here (400): only the demo client seeded under the opt-in legacy-implicit profile has it, and it may appear in a response for that client.redirectUris- Allowed redirect URIs.scopes- Allowed scopes.requireProofKey- Whether PKCE is required. Defaults to false.audiences- Audiences of the issued access tokens; absent or empty means the client identifier.accessTokenTtl- Lifetime of the access tokens, as an ISO-8601 duration such as PT5M.refreshTokenTtl- Lifetime of the refresh tokens, as an ISO-8601 duration such as PT1H.accessTokenFormat- Format of the access tokens, self-contained (a signed JWT) or reference (an opaque token resolved by introspection); absent or blank means self-contained.reuseRefreshTokens- Whether refresh tokens are reused instead of rotated. Defaults to false.postLogoutRedirectUris- URIs the user may be redirected to after an OpenID Connect RP-initiated logout; a post_logout_redirect_uri that is not listed is never honoured. Absent means none.requireConsent- Whether the end-user must explicitly grant the requested scopes on a consent page. Defaults to false.mfaRequired- Whether every user who signs in through this client must complete a second factor, whatever their account setting. Defaults to false.jwkSetUrl- URL of the client's public JWK set, used to verify private_key_jwt assertions and self-signed certificates. Absent means none.jwks- The client's public JWK set (an object with a keys array), alternative to jwkSetUrl. Only public keys are accepted: a key with private material is refused with 400 invalid-jwks. Absent means none.tokenEndpointAuthSigningAlgorithm- JWS algorithm a client signs its private_key_jwt assertions with.tlsClientAuthSubjectDn- Expected subject distinguished name of the certificate of a tls_client_auth client, for example CN=client,O=Example. Required by tls_client_auth.certificateBoundAccessTokens- Whether the access tokens issued to the client are bound to its mutual TLS certificate (cnf x5t#S256). Defaults to false.
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
date="2026-11-08T20:21:45.782821081Z[Etc/UTC]",
comments="Generator version: 7.27.0")
public record ClientRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String clientId, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String name, Boolean confidential, @NotNull List<String> authMethods, @NotNull List<String> grantTypes, @NotNull List<String> redirectUris, @NotNull List<String> scopes, Boolean requireProofKey, List<String> audiences, @NotNull @Valid Duration accessTokenTtl, @NotNull @Valid Duration refreshTokenTtl, String accessTokenFormat, Boolean reuseRefreshTokens, List<String> postLogoutRedirectUris, Boolean requireConsent, Boolean mfaRequired, @Valid URI jwkSetUrl, Map<String,Object> jwks, ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm, String tlsClientAuthSubjectDn, Boolean certificateBoundAccessTokens)
extends Record
Definition of a registered client; it never contains a secret, which the server generates
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumJWS algorithm a client signs its private_key_jwt assertions with. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theaccessTokenFormatrecord component.private final @NotNull @Valid DurationThe field for theaccessTokenTtlrecord component.The field for theaudiencesrecord component.The field for theauthMethodsrecord component.private final BooleanThe field for thecertificateBoundAccessTokensrecord component.private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) StringThe field for theclientIdrecord component.private final BooleanThe field for theconfidentialrecord component.The field for thegrantTypesrecord component.The field for thejwksrecord component.private final @Valid URIThe field for thejwkSetUrlrecord component.private final BooleanThe field for themfaRequiredrecord component.private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) StringThe field for thenamerecord component.The field for thepostLogoutRedirectUrisrecord component.The field for theredirectUrisrecord component.private final @NotNull @Valid DurationThe field for therefreshTokenTtlrecord component.private final BooleanThe field for therequireConsentrecord component.private final BooleanThe field for therequireProofKeyrecord component.private final BooleanThe field for thereuseRefreshTokensrecord component.The field for thescopesrecord component.private final StringThe field for thetlsClientAuthSubjectDnrecord component.private final ClientRequest.TokenEndpointAuthSigningAlgorithmEnumThe field for thetokenEndpointAuthSigningAlgorithmrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String clientId, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String name, Boolean confidential, @NotNull List<String> authMethods, @NotNull List<String> grantTypes, @NotNull List<String> redirectUris, @NotNull List<String> scopes, Boolean requireProofKey, List<String> audiences, @NotNull @Valid Duration accessTokenTtl, @NotNull @Valid Duration refreshTokenTtl, String accessTokenFormat, Boolean reuseRefreshTokens, List<String> postLogoutRedirectUris, Boolean requireConsent, Boolean mfaRequired, @Valid URI jwkSetUrl, Map<String, Object> jwks, ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm, String tlsClientAuthSubjectDn, Boolean certificateBoundAccessTokens) Creates an instance of aClientRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenFormatrecord component.@NotNull @Valid DurationReturns the value of theaccessTokenTtlrecord component.Returns the value of theaudiencesrecord component.Returns the value of theauthMethodsrecord component.Returns the value of thecertificateBoundAccessTokensrecord component.@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) StringclientId()Returns the value of theclientIdrecord component.Returns the value of theconfidentialrecord 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.jwks()Returns the value of thejwksrecord component.@Valid URIReturns the value of thejwkSetUrlrecord component.Returns the value of themfaRequiredrecord component.@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) Stringname()Returns the value of thenamerecord component.Returns the value of thepostLogoutRedirectUrisrecord component.Returns the value of theredirectUrisrecord component.@NotNull @Valid DurationReturns the value of therefreshTokenTtlrecord component.Returns the value of therequireConsentrecord component.Returns the value of therequireProofKeyrecord component.Returns the value of thereuseRefreshTokensrecord component.scopes()Returns the value of thescopesrecord component.Returns the value of thetlsClientAuthSubjectDnrecord component.Returns the value of thetokenEndpointAuthSigningAlgorithmrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clientId
@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String clientIdThe field for theclientIdrecord component. -
name
@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) private final @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String nameThe field for thenamerecord component. -
confidential
The field for theconfidentialrecord component. -
authMethods
The field for theauthMethodsrecord component. -
grantTypes
The field for thegrantTypesrecord component. -
redirectUris
The field for theredirectUrisrecord component. -
scopes
The field for thescopesrecord component. -
requireProofKey
The field for therequireProofKeyrecord component. -
audiences
The field for theaudiencesrecord component. -
accessTokenTtl
The field for theaccessTokenTtlrecord component. -
refreshTokenTtl
The field for therefreshTokenTtlrecord component. -
accessTokenFormat
The field for theaccessTokenFormatrecord component. -
reuseRefreshTokens
The field for thereuseRefreshTokensrecord component. -
postLogoutRedirectUris
The field for thepostLogoutRedirectUrisrecord component. -
requireConsent
The field for therequireConsentrecord component. -
mfaRequired
The field for themfaRequiredrecord component. -
jwkSetUrl
The field for thejwkSetUrlrecord component. -
jwks
The field for thejwksrecord component. -
tokenEndpointAuthSigningAlgorithm
@Nullable private final ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithmThe field for thetokenEndpointAuthSigningAlgorithmrecord component. -
tlsClientAuthSubjectDn
The field for thetlsClientAuthSubjectDnrecord component. -
certificateBoundAccessTokens
The field for thecertificateBoundAccessTokensrecord component.
-
-
Constructor Details
-
ClientRequest
public ClientRequest(@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String clientId, @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String name, Boolean confidential, @NotNull @NotNull List<String> authMethods, @NotNull @NotNull List<String> grantTypes, @NotNull @NotNull List<String> redirectUris, @NotNull @NotNull List<String> scopes, Boolean requireProofKey, @Nullable List<String> audiences, @NotNull @Valid @NotNull @Valid Duration accessTokenTtl, @NotNull @Valid @NotNull @Valid Duration refreshTokenTtl, @Nullable String accessTokenFormat, Boolean reuseRefreshTokens, @Nullable List<String> postLogoutRedirectUris, Boolean requireConsent, Boolean mfaRequired, @Valid @Nullable @Valid URI jwkSetUrl, @Nullable Map<String, Object> jwks, @Nullable ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm, @Nullable String tlsClientAuthSubjectDn, Boolean certificateBoundAccessTokens) Creates an instance of aClientRequestrecord class.- Parameters:
clientId- the value for theclientIdrecord componentname- the value for thenamerecord componentconfidential- the value for theconfidentialrecord componentauthMethods- the value for theauthMethodsrecord componentgrantTypes- the value for thegrantTypesrecord componentredirectUris- the value for theredirectUrisrecord componentscopes- the value for thescopesrecord componentrequireProofKey- the value for therequireProofKeyrecord componentaudiences- the value for theaudiencesrecord componentaccessTokenTtl- the value for theaccessTokenTtlrecord componentrefreshTokenTtl- the value for therefreshTokenTtlrecord componentaccessTokenFormat- the value for theaccessTokenFormatrecord componentreuseRefreshTokens- the value for thereuseRefreshTokensrecord componentpostLogoutRedirectUris- the value for thepostLogoutRedirectUrisrecord componentrequireConsent- the value for therequireConsentrecord componentmfaRequired- the value for themfaRequiredrecord componentjwkSetUrl- the value for thejwkSetUrlrecord componentjwks- the value for thejwksrecord componenttokenEndpointAuthSigningAlgorithm- the value for thetokenEndpointAuthSigningAlgorithmrecord componenttlsClientAuthSubjectDn- the value for thetlsClientAuthSubjectDnrecord componentcertificateBoundAccessTokens- the value for thecertificateBoundAccessTokensrecord 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
@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) public @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String clientId()Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
name
@NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) public @NotNull @Pattern(regexp="[\\s\\S]*\\S[\\s\\S]*") @Size(min=1) String name()Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
confidential
Returns the value of theconfidentialrecord component.- Returns:
- the value of the
confidentialrecord component
-
authMethods
Returns the value of theauthMethodsrecord component.- Returns:
- the value of the
authMethodsrecord component
-
grantTypes
Returns the value of thegrantTypesrecord component.- Returns:
- the value of the
grantTypesrecord component
-
redirectUris
Returns the value of theredirectUrisrecord component.- Returns:
- the value of the
redirectUrisrecord component
-
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-
requireProofKey
Returns the value of therequireProofKeyrecord component.- Returns:
- the value of the
requireProofKeyrecord component
-
audiences
Returns the value of theaudiencesrecord component.- Returns:
- the value of the
audiencesrecord component
-
accessTokenTtl
Returns the value of theaccessTokenTtlrecord component.- Returns:
- the value of the
accessTokenTtlrecord component
-
refreshTokenTtl
Returns the value of therefreshTokenTtlrecord component.- Returns:
- the value of the
refreshTokenTtlrecord component
-
accessTokenFormat
Returns the value of theaccessTokenFormatrecord component.- Returns:
- the value of the
accessTokenFormatrecord component
-
reuseRefreshTokens
Returns the value of thereuseRefreshTokensrecord component.- Returns:
- the value of the
reuseRefreshTokensrecord component
-
postLogoutRedirectUris
Returns the value of thepostLogoutRedirectUrisrecord component.- Returns:
- the value of the
postLogoutRedirectUrisrecord component
-
requireConsent
Returns the value of therequireConsentrecord component.- Returns:
- the value of the
requireConsentrecord component
-
mfaRequired
Returns the value of themfaRequiredrecord component.- Returns:
- the value of the
mfaRequiredrecord component
-
jwkSetUrl
Returns the value of thejwkSetUrlrecord component.- Returns:
- the value of the
jwkSetUrlrecord component
-
jwks
Returns the value of thejwksrecord component.- Returns:
- the value of the
jwksrecord component
-
tokenEndpointAuthSigningAlgorithm
@Nullable public ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm()Returns the value of thetokenEndpointAuthSigningAlgorithmrecord component.- Returns:
- the value of the
tokenEndpointAuthSigningAlgorithmrecord component
-
tlsClientAuthSubjectDn
Returns the value of thetlsClientAuthSubjectDnrecord component.- Returns:
- the value of the
tlsClientAuthSubjectDnrecord component
-
certificateBoundAccessTokens
Returns the value of thecertificateBoundAccessTokensrecord component.- Returns:
- the value of the
certificateBoundAccessTokensrecord component
-