Package org.apache.drill.exec.oauth
Class PersistentTokenRegistry
java.lang.Object
org.apache.drill.exec.oauth.PersistentTokenRegistry
- All Implemented Interfaces:
AutoCloseable
,TokenRegistry
Implementation of
TokenRegistry
that persists token tables
to the preconfigured persistent store.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
createTokenTable
(String pluginName) Creates a token table for specifiedpluginName
.void
deleteTokenTable
(String pluginName) Deletes the token table for specifiedpluginName
.Returns iterator for aliases table entries.getStore()
getTokenTable
(String name)
-
Constructor Details
-
PersistentTokenRegistry
-
-
Method Details
-
getStore
-
getTokenTable
- Specified by:
getTokenTable
in interfaceTokenRegistry
-
getAllTokens
Description copied from interface:TokenRegistry
Returns iterator for aliases table entries.- Specified by:
getAllTokens
in interfaceTokenRegistry
-
createTokenTable
Description copied from interface:TokenRegistry
Creates a token table for specifiedpluginName
.- Specified by:
createTokenTable
in interfaceTokenRegistry
- Parameters:
pluginName
- The name of the plugin instance.
-
deleteTokenTable
Description copied from interface:TokenRegistry
Deletes the token table for specifiedpluginName
.- Specified by:
deleteTokenTable
in interfaceTokenRegistry
- Parameters:
pluginName
- name of the plugin whose token table should be removed
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-