Package com.inrupt.client.openid
Class AuthorizationRequest.Builder
java.lang.Object
com.inrupt.client.openid.AuthorizationRequest.Builder
- Enclosing class:
- AuthorizationRequest
A class for building
AuthorizationRequest
objects.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild the authorization request.codeChallenge
(String codeChallenge) Add a code challenge to the builder.codeChallengeMethod
(String codeChallengeMethod) Add a code challenge method to the builder.Add a nonce value to the builder.responseType
(String responseType) Add a response type to the builder.Add a scope value to the builder.Add a state value to the builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
scope
Add a scope value to the builder.- Parameters:
scope
- the scope value- Returns:
- this builder
-
state
Add a state value to the builder.- Parameters:
state
- the state value- Returns:
- this builder
-
nonce
Add a nonce value to the builder.- Parameters:
nonce
- the nonce value- Returns:
- this builder
-
responseType
Add a response type to the builder.- Parameters:
responseType
- the response type- Returns:
- this builder
-
codeChallenge
Add a code challenge to the builder.- Parameters:
codeChallenge
- the code challenge- Returns:
- this builder
-
codeChallengeMethod
Add a code challenge method to the builder.- Parameters:
codeChallengeMethod
- the code challenge method- Returns:
- this builder
-
build
Build the authorization request.- Parameters:
clientId
- the client idredirectUri
- the redirect URI- Returns:
- the authorization request
-