Class ClientSettings
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.ClientSettings
What is asked of one client beyond what OAuth2 asks of every client.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientSettings.Builderbuilder()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.getJwks()The client's public keys as a JSON Web Key Set document, for aprivate_key_jwtclient that publishes nogetJwkSetUrl(); null for none.The https address of the client's JSON Web Key Set, whose public keys verify the assertions aprivate_key_jwtclient signs; null when the keys are given inline withgetJwks()or the client does not use one.Where the end-session endpoint may send the browser after signing the user out (OpenID Connect RP-Initiated Logout), compared exactly.The DNS name atls_client_authclient's certificate must carry as a subject alternative name.The URI atls_client_authclient's certificate must carry as a subject alternative name.The subject atls_client_authclient's certificate must have, as an RFC 4514 name; compared as names, not as text.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.booleanWhether the client may introspect a token issued to any client: what a resource server is registered with.booleanWhether the user must approve each authorization of this client on a consent page, which grants only the scopes they approve.booleanWhether 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.booleanWhether the client must use PKCE with the authorization code.booleanWhether the client must push its authorization requests (RFC 9126): the authorization endpoint then refuses one that names norequest_uri, so no parameter of the request travels through the browser.
-
Method Details
-
getPostLogoutRedirectUris
-
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
-
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
-
getJwks
The client's public keys as a JSON Web Key Set document, for aprivate_key_jwtclient that publishes nogetJwkSetUrl(); null for none. -
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": falsefor 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 norequest_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
The subject atls_client_authclient's certificate must have, as an RFC 4514 name; compared as names, not as text. Null unless set. -
getTlsClientAuthSanDns
The DNS name atls_client_authclient's certificate must carry as a subject alternative name. Null unless set. -
getTlsClientAuthSanUri
The URI atls_client_authclient's certificate must carry as a subject alternative name. Null unless set.
-