| Package | Description |
|---|---|
| org.apache.hadoop.security.token.delegation |
ZooKeeper secret manager for TokenIdentifiers and DelegationKeys.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected java.util.Map<java.lang.Integer,DelegationKey> |
AbstractDelegationTokenSecretManager.allKeys |
Access to allKeys is protected by this object lock
|
| Modifier and Type | Method | Description |
|---|---|---|
DelegationKey[] |
AbstractDelegationTokenSecretManager.getAllKeys() |
|
protected DelegationKey |
AbstractDelegationTokenSecretManager.getDelegationKey(int keyId) |
For subclasses externalizing the storage, for example Zookeeper
based implementations.
|
protected DelegationKey |
SQLDelegationTokenSecretManager.getDelegationKey(int keyId) |
Obtains the DelegationKey from the SQL database.
|
protected DelegationKey |
ZKDelegationTokenSecretManager.getDelegationKey(int keyId) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AbstractDelegationTokenSecretManager.addKey(DelegationKey key) |
Add a previously used master key to cache (when NN restarts),
should be called before activate().
|
protected void |
AbstractDelegationTokenSecretManager.logUpdateMasterKey(DelegationKey key) |
|
protected void |
AbstractDelegationTokenSecretManager.removeStoredMasterKey(DelegationKey key) |
|
protected void |
SQLDelegationTokenSecretManager.removeStoredMasterKey(DelegationKey key) |
Removes the existing DelegationKey from the SQL database to
invalidate it.
|
protected void |
ZKDelegationTokenSecretManager.removeStoredMasterKey(DelegationKey key) |
|
protected void |
AbstractDelegationTokenSecretManager.storeDelegationKey(DelegationKey key) |
For subclasses externalizing the storage, for example Zookeeper
based implementations.
|
protected void |
SQLDelegationTokenSecretManager.storeDelegationKey(DelegationKey key) |
Persists a DelegationKey into the SQL database.
|
protected void |
ZKDelegationTokenSecretManager.storeDelegationKey(DelegationKey key) |
|
protected void |
AbstractDelegationTokenSecretManager.storeNewMasterKey(DelegationKey key) |
|
protected void |
AbstractDelegationTokenSecretManager.updateDelegationKey(DelegationKey key) |
For subclasses externalizing the storage, for example Zookeeper
based implementations.
|
protected void |
SQLDelegationTokenSecretManager.updateDelegationKey(DelegationKey key) |
Updates an existing DelegationKey in the SQL database.
|
protected void |
ZKDelegationTokenSecretManager.updateDelegationKey(DelegationKey key) |
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.