Class ClientSettings

java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.ClientSettings

public final class ClientSettings extends Object
What is asked of one client beyond what OAuth2 asks of every client.
  • Method Details

    • getPostLogoutRedirectUris

      public Set<String> getPostLogoutRedirectUris()
      Where the end-session endpoint may send the browser after signing the user out (OpenID Connect RP-Initiated Logout), compared exactly. Empty unless set: the endpoint then shows its own page.
    • getBackChannelLogoutUri

      public String getBackChannelLogoutUri()
      Where this server posts a logout token when a user who signed in to the client signs out here (OpenID Connect Back-Channel Logout 1.0), or null.
    • builder

      public static ClientSettings.Builder builder()
    • isRequireProofKey

      public boolean isRequireProofKey()
      Whether the client must use PKCE with the authorization code. A public client -- one with no secret -- must whatever this says.
    • isRequireAuthorizationConsent

      public boolean isRequireAuthorizationConsent()
      Whether the user must approve each authorization of this client on a consent page, which grants only the scopes they approve. False unless set, and then a client is authorized for the scopes it asks for out of those it was registered with. A client that registered itself always asks.
    • getJwkSetUrl

      public String getJwkSetUrl()
      The https address of the client's JSON Web Key Set, whose public keys verify the assertions a private_key_jwt client signs; null when the keys are given inline with getJwks() or the client does not use one.
    • getJwks

      public String getJwks()
      The client's public keys as a JSON Web Key Set document, for a private_key_jwt client that publishes no getJwkSetUrl(); null for none.
    • getTokenEndpointAuthenticationSigningAlgorithm

      public SignatureAlgorithm getTokenEndpointAuthenticationSigningAlgorithm()
      The one algorithm the client's assertions may be signed with; null to accept RS256, PS256, ES256 and ES384 -- each still only with a key of its own kind.
    • isIntrospectAnyToken

      public boolean isIntrospectAnyToken()
      Whether the client may introspect a token issued to any client: what a resource server is registered with. Otherwise the introspection endpoint tells a client about its own tokens only, and answers "active": false for the rest. False unless set.
    • isRequirePushedAuthorizationRequests

      public boolean isRequirePushedAuthorizationRequests()
      Whether the client must push its authorization requests (RFC 9126): the authorization endpoint then refuses one that names no request_uri, so no parameter of the request travels through the browser. False unless set.
    • isRequireDPoP

      public boolean isRequireDPoP()
      Whether the token endpoint refuses this client a request without a DPoP proof (RFC 9449), so that every token it gets is bound to its key. False unless set.
    • getTlsClientAuthSubjectDn

      public String getTlsClientAuthSubjectDn()
      The subject a tls_client_auth client's certificate must have, as an RFC 4514 name; compared as names, not as text. Null unless set.
    • getTlsClientAuthSanDns

      public String getTlsClientAuthSanDns()
      The DNS name a tls_client_auth client's certificate must carry as a subject alternative name. Null unless set.
    • getTlsClientAuthSanUri

      public String getTlsClientAuthSanUri()
      The URI a tls_client_auth client's certificate must carry as a subject alternative name. Null unless set.