Class RegisteredClient.Builder
java.lang.Object
com.codename1.backend.security.oauth2.server.authorization.RegisteredClient.Builder
- Enclosing class:
RegisteredClient
Builds a
RegisteredClient.-
Method Summary
Modifier and TypeMethodDescriptionauthorizationGrantType(AuthorizationGrantType grantType) build()clientName(String clientName) clientSecret(String encodedClientSecret) The secret as the encoder wrote it:encoder.encode(secret).clientSettings(ClientSettings clientSettings) redirectUri(String redirectUri) A resource server this client may ask for tokens for, named as the client names it in theresourceparameter of a request (RFC 8707): an absolute address with no fragment, compared whole.tokenSettings(TokenSettings tokenSettings)
-
Method Details
-
clientId
-
clientSecret
The secret as the encoder wrote it:encoder.encode(secret). -
clientName
-
clientAuthenticationMethod
-
authorizationGrantType
-
redirectUri
-
scope
-
resource
A resource server this client may ask for tokens for, named as the client names it in the
resourceparameter of a request (RFC 8707): an absolute address with no fragment, compared whole.An access token's
audis what the request asked for withresource, or the server's default audience when it asked for nothing; seeAuthorizationServerSettings.Builder.defaultAudience. A client registered with resources is refused any other withinvalid_target. One registered with none may name any: the audience limits where a token is accepted, and a client that could not be trusted to choose it should be given a list. -
clientSettings
-
tokenSettings
-
build
-