public class EsTokenIdentifier extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
Hadoop tokens are generic byte holders that can hold any kind of auth information within them. To identify what specific auth information is within them, they require an "Identifier" to be provided at creation time. This class is used as that identifier.
Also included in this class is the Hadoop defined token renewer interface which allows for any process that contains the appropriate service loader info to renew and cancel an existing token.
Service loader information is at META-INF/services/org.apache.hadoop.security.token.TokenRenewer and META-INF/services/org.apache.hadoop.security.token.TokenIdentifier
Modifier and Type | Class and Description |
---|---|
static class |
EsTokenIdentifier.Renewer |
Constructor and Description |
---|
EsTokenIdentifier() |
Modifier and Type | Method and Description |
---|---|
static Token<EsTokenIdentifier> |
createTokenFrom(EsToken esToken) |
Text |
getKind() |
equals, getIssueDate, getMasterKeyId, getMaxDate, getOwner, getRealUser, getRenewer, getSequenceNumber, getUser, hashCode, isEqual, readFields, setIssueDate, setMasterKeyId, setMaxDate, setOwner, setRealUser, setRenewer, setSequenceNumber, toString, toStringStable, write
getBytes, getTrackingId
public static final Text KIND_NAME
public static Token<EsTokenIdentifier> createTokenFrom(EsToken esToken)
public Text getKind()
getKind
in class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier