T
- the type of OAuthClientConfiguration builder to build.C
- the type of OAuthClientConfiguration
to build.public abstract static class OAuth2ClientConfiguration.Builder<T extends OAuth2ClientConfiguration.Builder<T,C>,C extends OAuth2ClientConfiguration> extends OAuthClientConfiguration.Builder<T,C>
Modifier | Constructor and Description |
---|---|
protected |
Builder(Function<T,C> builder)
Limit constructor visibility.
|
Modifier and Type | Method and Description |
---|---|
T |
withAuthorizationEndpoint(String authorizationEndpoint)
Set the authorizationEndpoint.
|
T |
withBasicAuth(boolean basicAuth)
Set the basicAuth flag.
|
T |
withClientId(String clientId)
Set the clientId.
|
T |
withClientSecret(String clientSecret)
Set the clientSecret.
|
T |
withPkceMethod(PkceMethod pkceMethod)
Sets the PKCE transformation method to use.
|
T |
withRedirectUri(URI redirectUri)
Set the redirectUri.
|
T |
withScope(List<String> scope)
Set the scope.
|
T |
withScopeDelimiter(String scopeDelimiter)
Set the scopeDelimiter.
|
T |
withTokenEndpoint(String tokenEndpoint)
Set the tokenEndpoint.
|
T |
withUserInfoEndpoint(String userInfoEndpoint)
Set the userInfoEndpoint.
|
build, self, withAuthenticationIdKey, withProvider
public T withClientId(String clientId)
clientId
- identifier of client.public T withClientSecret(String clientSecret)
clientSecret
- client password.public T withAuthorizationEndpoint(String authorizationEndpoint)
authorizationEndpoint
- endpoint to perform authentication and authorization.public T withTokenEndpoint(String tokenEndpoint)
tokenEndpoint
- endpoint used to retrieve access, id, and refresh tokens.public T withUserInfoEndpoint(String userInfoEndpoint)
userInfoEndpoint
- endpoint used to retrieve information about a particular identity.public T withRedirectUri(URI redirectUri)
redirectUri
- uri to redirect the user agent back to from the authorization server.public T withScopeDelimiter(String scopeDelimiter)
scopeDelimiter
- delimiter used to separate scope values in a request.public T withScope(List<String> scope)
scope
- scope Strings in a list.public T withBasicAuth(boolean basicAuth)
basicAuth
- boolean that holds whether the client should use basic auth for
authenticating with an authorization or resource server.public T withPkceMethod(PkceMethod pkceMethod)
pkceMethod
- the PKCE transformation method.Copyright © 2010-2018, ForgeRock All Rights Reserved.