Class EsTokenIdentifier
java.lang.Object
org.apache.hadoop.security.token.TokenIdentifier
org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
org.elasticsearch.hadoop.mr.security.EsTokenIdentifier
- All Implemented Interfaces:
Writable
public class EsTokenIdentifier
extends org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
The Hadoop Token Identifier for any generic token that contains an EsToken within it.
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Token<EsTokenIdentifier>createTokenFrom(EsToken esToken) getKind()Methods inherited from class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
equals, getIssueDate, getMasterKeyId, getMaxDate, getOwner, getRealUser, getRenewer, getSequenceNumber, getUser, hashCode, isEqual, readFields, setIssueDate, setMasterKeyId, setMaxDate, setOwner, setRealUser, setRenewer, setSequenceNumber, toString, toStringStable, writeMethods inherited from class org.apache.hadoop.security.token.TokenIdentifier
getBytes, getTrackingId
-
Field Details
-
KIND_NAME
-
-
Constructor Details
-
EsTokenIdentifier
public EsTokenIdentifier()
-
-
Method Details
-
createTokenFrom
-
getKind
- Specified by:
getKindin classorg.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier
-