Class OAuthTokenCredentials.Builder
java.lang.Object
org.apache.drill.exec.store.security.oauth.OAuthTokenCredentials.Builder
- Enclosing class:
- OAuthTokenCredentials
While a builder may seem like overkill for a class that is little more than small struct,
it allows us to wrap new instances in an Optional while using contructors does not.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setCredentialsProvider
(CredentialsProvider credentialsProvider) setQueryUser
(String queryUser) setTokenTable
(PersistentTokenTable tokenTable)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCredentialsProvider
public OAuthTokenCredentials.Builder setCredentialsProvider(CredentialsProvider credentialsProvider) -
setQueryUser
-
setTokenTable
-
build
-