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
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Text
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    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, write

    Methods inherited from class org.apache.hadoop.security.token.TokenIdentifier

    getBytes, getTrackingId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • KIND_NAME

      public static final Text KIND_NAME
  • Constructor Details

    • EsTokenIdentifier

      public EsTokenIdentifier()
  • Method Details

    • createTokenFrom

      public static Token<EsTokenIdentifier> createTokenFrom(EsToken esToken)
    • getKind

      public Text getKind()
      Specified by:
      getKind in class org.apache.hadoop.security.token.delegation.AbstractDelegationTokenIdentifier