Class UsernamePasswordCredentials.Builder
java.lang.Object
org.apache.drill.exec.store.security.UsernamePasswordCredentials.Builder
- Enclosing class:
- UsernamePasswordCredentials
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)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setCredentialsProvider
public UsernamePasswordCredentials.Builder setCredentialsProvider(CredentialsProvider credentialsProvider) -
setQueryUser
-
build
-