Package com.inrupt.client.openid
Class TokenRequest.Builder
java.lang.Object
com.inrupt.client.openid.TokenRequest.Builder
- Enclosing class:
- TokenRequest
A builder class for
TokenRequest
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthMethod
(String authMethod) Set the authentication method for the token endpoint.Build a token request.clientSecret
(String clientSecret) Set the client secret value.Set the authorization code value.codeVerifier
(String codeVerifier) Set the PKCE code verifier for the token endpoint.Set the issuer URI.redirectUri
(URI redirectUri) Set the redirect URI value.Set one or more scope values.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientSecret
Set the client secret value.- Parameters:
clientSecret
- the client secret- Returns:
- this builder
-
codeVerifier
Set the PKCE code verifier for the token endpoint.- Parameters:
codeVerifier
- the code verifier- Returns:
- this builder
-
scopes
Set one or more scope values.- Parameters:
scopes
- the scope values- Returns:
- this builder
-
issuer
Set the issuer URI.- Parameters:
issuer
- the issuer value- Returns:
- this builder
-
authMethod
Set the authentication method for the token endpoint.- Parameters:
authMethod
- the authentication method- Returns:
- this builder
-
code
Set the authorization code value.- Parameters:
code
- the authorization code- Returns:
- this builder
-
redirectUri
Set the redirect URI value.- Parameters:
redirectUri
- the redirect URI- Returns:
- this builder
-
build
Build a token request.- Parameters:
grantType
- the grant typeclientId
- the client id- Returns:
- the token request
-