@Experimental public interface DelegationTokenProvider
DelegationTokenManager
through service loader.Modifier and Type | Method and Description |
---|---|
boolean |
delegationTokensRequired()
Return whether delegation tokens are required for this service.
|
void |
init(Configuration configuration)
Called by
DelegationTokenManager to initialize provider after construction. |
Optional<Long> |
obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials)
Obtain delegation tokens for this service.
|
String |
serviceName()
Name of the service to provide delegation tokens.
|
String serviceName()
void init(Configuration configuration) throws Exception
DelegationTokenManager
to initialize provider after construction.configuration
- Configuration to initialize the provider.Exception
boolean delegationTokensRequired() throws Exception
Exception
Optional<Long> obtainDelegationTokens(org.apache.hadoop.security.Credentials credentials) throws Exception
credentials
- Credentials to add tokens and security keys to.Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.