Class OAuthTokenCredentials
java.lang.Object
org.apache.drill.exec.store.security.UsernamePasswordCredentials
org.apache.drill.exec.store.security.oauth.OAuthTokenCredentials
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classWhile 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. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.drill.exec.store.security.UsernamePasswordCredentials
PASSWORD, USERNAME -
Constructor Summary
ConstructorsConstructorDescriptionOAuthTokenCredentials(String username, String password, String clientID, String clientSecret, String tokenURI, PersistentTokenTable tokenTable) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class org.apache.drill.exec.store.security.UsernamePasswordCredentials
equals, getPassword, getUsername, hashCode, toString
-
Field Details
-
CLIENT_ID
- See Also:
-
CLIENT_SECRET
- See Also:
-
ACCESS_TOKEN
- See Also:
-
EXPIRES_IN
- See Also:
-
REFRESH_TOKEN
- See Also:
-
TOKEN_URI
- See Also:
-
PROXY_USERNAME
- See Also:
-
PROXY_PASSWORD
- See Also:
-
-
Constructor Details
-
OAuthTokenCredentials
-
-
Method Details
-
getClientID
-
getClientSecret
-
getAccessToken
-
getRefreshToken
-
getExpiresIn
-
getTokenUri
-