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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcreateTokenTable(String pluginName) Creates a token table for specifiedpluginName.voiddeleteTokenTable(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:
getTokenTablein interfaceTokenRegistry
-
getAllTokens
Description copied from interface:TokenRegistryReturns iterator for aliases table entries.- Specified by:
getAllTokensin interfaceTokenRegistry
-
createTokenTable
Description copied from interface:TokenRegistryCreates a token table for specifiedpluginName.- Specified by:
createTokenTablein interfaceTokenRegistry- Parameters:
pluginName- The name of the plugin instance.
-
deleteTokenTable
Description copied from interface:TokenRegistryDeletes the token table for specifiedpluginName.- Specified by:
deleteTokenTablein interfaceTokenRegistry- Parameters:
pluginName- name of the plugin whose token table should be removed
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-