Package com.inrupt.client.openid
Class AuthorizationRequest.Builder
- java.lang.Object
-
- com.inrupt.client.openid.AuthorizationRequest.Builder
-
- Enclosing class:
- AuthorizationRequest
public static class AuthorizationRequest.Builder extends Object
A class for buildingAuthorizationRequest
objects.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorizationRequest
build(String clientId, URI redirectUri)
Build the authorization request.AuthorizationRequest.Builder
codeChallenge(String codeChallenge)
Add a code challenge to the builder.AuthorizationRequest.Builder
codeChallengeMethod(String codeChallengeMethod)
Add a code challenge method to the builder.AuthorizationRequest.Builder
nonce(String nonce)
Add a nonce value to the builder.AuthorizationRequest.Builder
responseType(String responseType)
Add a response type to the builder.AuthorizationRequest.Builder
scope(String scope)
Add a scope value to the builder.AuthorizationRequest.Builder
state(String state)
Add a state value to the builder.
-
-
-
Method Detail
-
scope
public AuthorizationRequest.Builder scope(String scope)
Add a scope value to the builder.- Parameters:
scope
- the scope value- Returns:
- this builder
-
state
public AuthorizationRequest.Builder state(String state)
Add a state value to the builder.- Parameters:
state
- the state value- Returns:
- this builder
-
nonce
public AuthorizationRequest.Builder nonce(String nonce)
Add a nonce value to the builder.- Parameters:
nonce
- the nonce value- Returns:
- this builder
-
responseType
public AuthorizationRequest.Builder responseType(String responseType)
Add a response type to the builder.- Parameters:
responseType
- the response type- Returns:
- this builder
-
codeChallenge
public AuthorizationRequest.Builder codeChallenge(String codeChallenge)
Add a code challenge to the builder.- Parameters:
codeChallenge
- the code challenge- Returns:
- this builder
-
codeChallengeMethod
public AuthorizationRequest.Builder codeChallengeMethod(String codeChallengeMethod)
Add a code challenge method to the builder.- Parameters:
codeChallengeMethod
- the code challenge method- Returns:
- this builder
-
build
public AuthorizationRequest build(String clientId, URI redirectUri)
Build the authorization request.- Parameters:
clientId
- the client idredirectUri
- the redirect URI- Returns:
- the authorization request
-
-