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
  • 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 clientId
      The field for the clientId record 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 name
      The field for the name record component.
    • confidential

      private final Boolean confidential
      The field for the confidential record component.
    • authMethods

      @NotNull private final @NotNull List<String> authMethods
      The field for the authMethods record component.
    • grantTypes

      @NotNull private final @NotNull List<String> grantTypes
      The field for the grantTypes record component.
    • redirectUris

      @NotNull private final @NotNull List<String> redirectUris
      The field for the redirectUris record component.
    • scopes

      @NotNull private final @NotNull List<String> scopes
      The field for the scopes record component.
    • requireProofKey

      private final Boolean requireProofKey
      The field for the requireProofKey record component.
    • audiences

      @Nullable private final List<String> audiences
      The field for the audiences record component.
    • accessTokenTtl

      @NotNull @Valid private final @NotNull @Valid Duration accessTokenTtl
      The field for the accessTokenTtl record component.
    • refreshTokenTtl

      @NotNull @Valid private final @NotNull @Valid Duration refreshTokenTtl
      The field for the refreshTokenTtl record component.
    • accessTokenFormat

      @Nullable private final String accessTokenFormat
      The field for the accessTokenFormat record component.
    • reuseRefreshTokens

      private final Boolean reuseRefreshTokens
      The field for the reuseRefreshTokens record component.
    • postLogoutRedirectUris

      @Nullable private final List<String> postLogoutRedirectUris
      The field for the postLogoutRedirectUris record component.
    • requireConsent

      private final Boolean requireConsent
      The field for the requireConsent record component.
    • mfaRequired

      private final Boolean mfaRequired
      The field for the mfaRequired record component.
    • jwkSetUrl

      @Valid @Nullable private final @Valid URI jwkSetUrl
      The field for the jwkSetUrl record component.
    • jwks

      @Nullable private final Map<String,Object> jwks
      The field for the jwks record component.
    • tokenEndpointAuthSigningAlgorithm

      @Nullable private final ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm
      The field for the tokenEndpointAuthSigningAlgorithm record component.
    • tlsClientAuthSubjectDn

      @Nullable private final String tlsClientAuthSubjectDn
      The field for the tlsClientAuthSubjectDn record component.
    • certificateBoundAccessTokens

      private final Boolean certificateBoundAccessTokens
      The field for the certificateBoundAccessTokens record 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 a ClientRequest record class.
      Parameters:
      clientId - the value for the clientId record component
      name - the value for the name record component
      confidential - the value for the confidential record component
      authMethods - the value for the authMethods record component
      grantTypes - the value for the grantTypes record component
      redirectUris - the value for the redirectUris record component
      scopes - the value for the scopes record component
      requireProofKey - the value for the requireProofKey record component
      audiences - the value for the audiences record component
      accessTokenTtl - the value for the accessTokenTtl record component
      refreshTokenTtl - the value for the refreshTokenTtl record component
      accessTokenFormat - the value for the accessTokenFormat record component
      reuseRefreshTokens - the value for the reuseRefreshTokens record component
      postLogoutRedirectUris - the value for the postLogoutRedirectUris record component
      requireConsent - the value for the requireConsent record component
      mfaRequired - the value for the mfaRequired record component
      jwkSetUrl - the value for the jwkSetUrl record component
      jwks - the value for the jwks record component
      tokenEndpointAuthSigningAlgorithm - the value for the tokenEndpointAuthSigningAlgorithm record component
      tlsClientAuthSubjectDn - the value for the tlsClientAuthSubjectDn record component
      certificateBoundAccessTokens - the value for the certificateBoundAccessTokens record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • 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 the clientId record component.
      Returns:
      the value of the clientId record 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 the name record component.
      Returns:
      the value of the name record component
    • confidential

      public Boolean confidential()
      Returns the value of the confidential record component.
      Returns:
      the value of the confidential record component
    • authMethods

      @NotNull public @NotNull List<String> authMethods()
      Returns the value of the authMethods record component.
      Returns:
      the value of the authMethods record component
    • grantTypes

      @NotNull public @NotNull List<String> grantTypes()
      Returns the value of the grantTypes record component.
      Returns:
      the value of the grantTypes record component
    • redirectUris

      @NotNull public @NotNull List<String> redirectUris()
      Returns the value of the redirectUris record component.
      Returns:
      the value of the redirectUris record component
    • scopes

      @NotNull public @NotNull List<String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component
    • requireProofKey

      public Boolean requireProofKey()
      Returns the value of the requireProofKey record component.
      Returns:
      the value of the requireProofKey record component
    • audiences

      @Nullable public List<String> audiences()
      Returns the value of the audiences record component.
      Returns:
      the value of the audiences record component
    • accessTokenTtl

      @NotNull @Valid public @NotNull @Valid Duration accessTokenTtl()
      Returns the value of the accessTokenTtl record component.
      Returns:
      the value of the accessTokenTtl record component
    • refreshTokenTtl

      @NotNull @Valid public @NotNull @Valid Duration refreshTokenTtl()
      Returns the value of the refreshTokenTtl record component.
      Returns:
      the value of the refreshTokenTtl record component
    • accessTokenFormat

      @Nullable public String accessTokenFormat()
      Returns the value of the accessTokenFormat record component.
      Returns:
      the value of the accessTokenFormat record component
    • reuseRefreshTokens

      public Boolean reuseRefreshTokens()
      Returns the value of the reuseRefreshTokens record component.
      Returns:
      the value of the reuseRefreshTokens record component
    • postLogoutRedirectUris

      @Nullable public List<String> postLogoutRedirectUris()
      Returns the value of the postLogoutRedirectUris record component.
      Returns:
      the value of the postLogoutRedirectUris record component
    • requireConsent

      public Boolean requireConsent()
      Returns the value of the requireConsent record component.
      Returns:
      the value of the requireConsent record component
    • mfaRequired

      public Boolean mfaRequired()
      Returns the value of the mfaRequired record component.
      Returns:
      the value of the mfaRequired record component
    • jwkSetUrl

      @Valid @Nullable public @Valid URI jwkSetUrl()
      Returns the value of the jwkSetUrl record component.
      Returns:
      the value of the jwkSetUrl record component
    • jwks

      @Nullable public Map<String,Object> jwks()
      Returns the value of the jwks record component.
      Returns:
      the value of the jwks record component
    • tokenEndpointAuthSigningAlgorithm

      @Nullable public ClientRequest.TokenEndpointAuthSigningAlgorithmEnum tokenEndpointAuthSigningAlgorithm()
      Returns the value of the tokenEndpointAuthSigningAlgorithm record component.
      Returns:
      the value of the tokenEndpointAuthSigningAlgorithm record component
    • tlsClientAuthSubjectDn

      @Nullable public String tlsClientAuthSubjectDn()
      Returns the value of the tlsClientAuthSubjectDn record component.
      Returns:
      the value of the tlsClientAuthSubjectDn record component
    • certificateBoundAccessTokens

      public Boolean certificateBoundAccessTokens()
      Returns the value of the certificateBoundAccessTokens record component.
      Returns:
      the value of the certificateBoundAccessTokens record component