Class ClientCredentialsGrant.Builder
java.lang.Object
com.codename1.backend.security.oauth2.client.credentials.ClientCredentialsGrant.Builder
- Enclosing class:
ClientCredentialsGrant
-
Method Summary
Modifier and TypeMethodDescriptionAnaudienceparameter, which Auth0 and Okta use to name the API the token is for.build()clientSecret(String secret) Authenticates with a secret in an HTTP Basic header.clientSecret(String secret, ClientCredentialsGrant.Authentication how) Authenticates with a secret, in a header or in the form.privateKeyJwt(Jwk privateKey) Authenticates with a JWT signed byprivateKey(private_key_jwt).Aresourceparameter (RFC 8707).scopes(Collection<String> scopes) transport(TokenEndpoint.Transport transport)
-
Method Details
-
clientSecret
Authenticates with a secret in an HTTP Basic header. -
clientSecret
public ClientCredentialsGrant.Builder clientSecret(String secret, ClientCredentialsGrant.Authentication how) Authenticates with a secret, in a header or in the form. -
privateKeyJwt
Authenticates with a JWT signed byprivateKey(private_key_jwt). Give the key the id the authorization server registered it under withJwk.withKeyId(String). -
scopes
-
scopes
-
audience
Anaudienceparameter, which Auth0 and Okta use to name the API the token is for. Not part of RFC 6749; omitted unless set. -
resource
Aresourceparameter (RFC 8707). Omitted unless set. -
transport
-
clock
-
build
-