| Package | Description |
|---|---|
| org.apache.hadoop.crypto.key.kms | |
| org.apache.hadoop.io |
Generic i/o code for use when reading and writing data to the network,
to databases, and to files.
|
| org.apache.hadoop.ipc |
Tools to help define network clients and servers.
|
| org.apache.hadoop.ipc.internal |
IPC internal classes not for any use by libraries outside
the apache hadoop source tree.
|
| org.apache.hadoop.security | |
| org.apache.hadoop.security.token |
Support for delegation tokens.
|
| org.apache.hadoop.security.token.delegation |
ZooKeeper secret manager for TokenIdentifiers and DelegationKeys.
|
| org.apache.hadoop.security.token.delegation.web | |
| org.apache.hadoop.util |
Common utilities.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Text |
KMSClientProvider.TOKEN_KIND |
|
static Text |
KMSDelegationToken.TOKEN_KIND |
| Modifier and Type | Method | Description |
|---|---|---|
protected static Text |
KMSClientProvider.getDtService(java.net.URI uri) |
|
Text |
KMSDelegationToken.KMSDelegationTokenIdentifier.getKind() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
KMSClientProvider.KMSTokenRenewer.handleKind(Text kind) |
|
protected static Token<?> |
KMSClientProvider.selectDelegationToken(Credentials creds,
Text service) |
| Modifier and Type | Method | Description |
|---|---|---|
Text |
SequenceFile.Metadata.get(Text name) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.TreeMap<Text,Text> |
SequenceFile.Metadata.getMetadata() |
|
java.util.TreeMap<Text,Text> |
SequenceFile.Metadata.getMetadata() |
| Modifier and Type | Method | Description |
|---|---|---|
Text |
SequenceFile.Metadata.get(Text name) |
|
void |
SequenceFile.Metadata.set(Text name,
Text value) |
|
void |
Text.set(Text other) |
Copy a text.
|
| Constructor | Description |
|---|---|
Text(Text utf8) |
Construct from another text.
|
| Constructor | Description |
|---|---|
Metadata(java.util.TreeMap<Text,Text> arg) |
|
Metadata(java.util.TreeMap<Text,Text> arg) |
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.thirdparty.protobuf.ByteString |
ProtobufHelper.getFixedByteString(Text key) |
Deprecated.
Get the ByteString for frequently used fixed and small set strings.
|
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.hadoop.thirdparty.protobuf.ByteString |
ShadedProtobufHelper.getFixedByteString(Text key) |
Get the ByteString for frequently used fixed and small set strings.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Text |
SecurityUtil.buildTokenService(java.net.InetSocketAddress addr) |
Construct the service key for a token
|
static Text |
SecurityUtil.buildTokenService(java.net.URI uri) |
Construct the service key for a token
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<Text> |
Credentials.getAllSecretKeys() |
Return all the secret key entries in the in-memory map.
|
java.util.Map<Text,byte[]> |
Credentials.getSecretKeyMap() |
Returns an unmodifiable version of the full map of aliases to secret keys.
|
java.util.Map<Text,Token<? extends TokenIdentifier>> |
Credentials.getTokenMap() |
Returns an unmodifiable version of the full map of aliases to Tokens.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
Credentials.addSecretKey(Text alias,
byte[] key) |
Set the key for an alias.
|
void |
Credentials.addToken(Text alias,
Token<? extends TokenIdentifier> t) |
Add a token in the storage (in memory).
|
boolean |
UserGroupInformation.addToken(Text alias,
Token<? extends TokenIdentifier> token) |
Add a named token to this UGI
|
byte[] |
Credentials.getSecretKey(Text alias) |
Returns the key bytes for the alias.
|
Token<? extends TokenIdentifier> |
Credentials.getToken(Text alias) |
Returns the Token object for the alias.
|
void |
Credentials.removeSecretKey(Text alias) |
Remove the key for a given alias.
|
| Modifier and Type | Method | Description |
|---|---|---|
Text |
Token.getKind() |
Get the token kind.
|
protected Text |
Token.TrivialRenewer.getKind() |
|
abstract Text |
TokenIdentifier.getKind() |
Get the token kind
|
Text |
Token.getService() |
Get the service on which the token is supposed to be used.
|
Text |
DtFetcher.getServiceName() |
Return a key used to identify the object/service implementation.
|
| Modifier and Type | Method | Description |
|---|---|---|
static void |
DtFileOperations.aliasTokenFile(java.io.File tokenFile,
java.lang.String fileFormat,
Text alias,
Text service,
Configuration conf) |
Alias a token from a file and save back to file in the local filesystem.
|
static void |
DtFileOperations.getTokenFile(java.io.File tokenFile,
java.lang.String fileFormat,
Text alias,
Text service,
java.lang.String url,
java.lang.String renewer,
Configuration conf) |
Fetch a token from a service and save to file in the local filesystem.
|
boolean |
Token.TrivialRenewer.handleKind(Text kind) |
|
abstract boolean |
TokenRenewer.handleKind(Text kind) |
Does this renewer handle this kind of token?
|
static void |
DtFileOperations.importTokenFile(java.io.File tokenFile,
java.lang.String fileFormat,
Text alias,
java.lang.String base64,
Configuration conf) |
Import a token from a base64 encoding into the local filesystem.
|
boolean |
Token.isPrivateCloneOf(Text thePublicService) |
Whether this is a private clone of a public token.
|
static void |
DtFileOperations.printCredentials(Credentials creds,
Text alias,
java.io.PrintStream out) |
Print out a Credentials object.
|
static void |
DtFileOperations.printTokenFile(java.io.File tokenFile,
Text alias,
Configuration conf,
java.io.PrintStream out) |
Print out a Credentials file from the local filesystem.
|
Token<T> |
Token.privateClone(Text newService) |
Create a private clone of a public token.
|
static void |
DtFileOperations.removeTokenFromFile(boolean cancel,
java.io.File tokenFile,
java.lang.String fileFormat,
Text alias,
Configuration conf) |
Remove a token from a file in the local filesystem, matching alias.
|
static void |
DtFileOperations.renewTokenFile(java.io.File tokenFile,
java.lang.String fileFormat,
Text alias,
Configuration conf) |
Renew a token from a file in the local filesystem, matching alias.
|
Token<T> |
TokenSelector.selectToken(Text service,
java.util.Collection<Token<? extends TokenIdentifier>> tokens) |
|
void |
Token.setKind(Text newKind) |
Set the token kind.
|
void |
Token.setService(Text newService) |
Set the service on which the token is supposed to be used.
|
| Constructor | Description |
|---|---|
Token(byte[] identifier,
byte[] password,
Text kind,
Text service) |
Construct a token from the components.
|
| Modifier and Type | Method | Description |
|---|---|---|
abstract Text |
AbstractDelegationTokenIdentifier.getKind() |
|
Text |
AbstractDelegationTokenIdentifier.getOwner() |
|
Text |
AbstractDelegationTokenIdentifier.getRealUser() |
|
Text |
AbstractDelegationTokenIdentifier.getRenewer() |
| Modifier and Type | Method | Description |
|---|---|---|
Token<TokenIdent> |
AbstractDelegationTokenSelector.selectToken(Text service,
java.util.Collection<Token<? extends TokenIdentifier>> tokens) |
|
void |
AbstractDelegationTokenIdentifier.setOwner(Text owner) |
|
void |
AbstractDelegationTokenIdentifier.setRealUser(Text realUser) |
|
void |
AbstractDelegationTokenIdentifier.setRenewer(Text renewer) |
| Constructor | Description |
|---|---|
AbstractDelegationTokenIdentifier(Text owner,
Text renewer,
Text realUser) |
|
AbstractDelegationTokenSelector(Text kindName) |
| Modifier and Type | Method | Description |
|---|---|---|
Text |
DelegationTokenIdentifier.getKind() |
Return the delegation token kind
|
| Constructor | Description |
|---|---|
DelegationTokenIdentifier(Text kind) |
|
DelegationTokenIdentifier(Text kind,
Text owner,
Text renewer,
Text realUser) |
Create a new delegation token identifier
|
DelegationTokenManager(Configuration conf,
Text tokenKind) |
| Modifier and Type | Method | Description |
|---|---|---|
int |
LineReader.readLine(Text str) |
Read from the InputStream into the given Text.
|
int |
LineReader.readLine(Text str,
int maxLineLength) |
Read from the InputStream into the given Text.
|
int |
LineReader.readLine(Text str,
int maxLineLength,
int maxBytesToConsume) |
Read one line from the InputStream into the given Text.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.