public static class UserAuthorizer.Builder extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected |
Builder(UserAuthorizer authorizer) |
protected Builder()
protected Builder(UserAuthorizer authorizer)
@CanIgnoreReturnValue public UserAuthorizer.Builder setClientId(ClientId clientId)
clientId - the client IDBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setTokenStore(TokenStore tokenStore)
TokenStore to use for long term token storage.tokenStore - the token storeBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setScopes(Collection<String> scopes)
scopes - the scopes to requestBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setTokenServerUri(URI tokenServerUri)
tokenServerUri - the token exchange endpoint to useBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setCallbackUri(URI callbackUri)
callbackUri - the redirect URIBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setUserAuthUri(URI userAuthUri)
userAuthUri - the authorization URIBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setHttpTransportFactory(HttpTransportFactory transportFactory)
transportFactory - the HttpTransportFactory to setBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setPKCEProvider(PKCEProvider pkce)
PKCEProvider to enable Proof Key for Code Exchange to be used. This
enhances security by using a code challenge and verifier to prevent authorization code
interception attacks.pkce - the PKCEProvider to setBuilder object@CanIgnoreReturnValue public UserAuthorizer.Builder setClientAuthenticationType(UserAuthorizer.ClientAuthenticationType clientAuthentication)
UserAuthorizer.ClientAuthenticationType, one of the client authentication methods
defined in RFC 7591. This specifies how your application authenticates itself to the
authorization server.clientAuthentication - the ClientAuthenticationType to setBuilder objectpublic ClientId getClientId()
public TokenStore getTokenStore()
public Collection<String> getScopes()
public URI getTokenServerUri()
public URI getCallbackUri()
public URI getUserAuthUri()
public HttpTransportFactory getHttpTransportFactory()
public PKCEProvider getPKCEProvider()
public UserAuthorizer.ClientAuthenticationType getClientAuthenticationType()
public UserAuthorizer build()
Copyright © 2024 Google. All rights reserved.