Class DelegationTokenReceiverRepository
- java.lang.Object
-
- org.apache.flink.runtime.security.token.DelegationTokenReceiverRepository
-
@Internal public class DelegationTokenReceiverRepository extends Object
Repository for delegation token receivers.
-
-
Constructor Summary
Constructors Constructor Description DelegationTokenReceiverRepository(org.apache.flink.configuration.Configuration configuration, org.apache.flink.core.plugin.PluginManager pluginManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonNewTokensObtained(byte[] containerBytes)Callback function when new delegation tokens obtained.voidonNewTokensObtained(DelegationTokenContainer container)Callback function when new delegation tokens obtained.
-
-
-
Method Detail
-
onNewTokensObtained
public void onNewTokensObtained(byte[] containerBytes) throws ExceptionCallback function when new delegation tokens obtained.- Parameters:
containerBytes- Serialized form of a DelegationTokenContainer. All the available tokens will be forwarded to the appropriateDelegationTokenReceiverbased on service name.- Throws:
Exception
-
onNewTokensObtained
public void onNewTokensObtained(DelegationTokenContainer container) throws Exception
Callback function when new delegation tokens obtained.- Parameters:
container- Serialized form of delegation tokens stored in DelegationTokenContainer. All the available tokens will be forwarded to the appropriateDelegationTokenReceiverbased on service name.- Throws:
Exception
-
-