Class ClientToAMTokenSecretManagerInRM

java.lang.Object
org.apache.hadoop.security.token.SecretManager<org.apache.hadoop.yarn.security.client.ClientToAMTokenIdentifier>
org.apache.hadoop.yarn.security.client.BaseClientToAMTokenSecretManager
org.apache.hadoop.yarn.server.resourcemanager.security.ClientToAMTokenSecretManagerInRM

public class ClientToAMTokenSecretManagerInRM extends org.apache.hadoop.yarn.security.client.BaseClientToAMTokenSecretManager
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.hadoop.security.token.SecretManager

    org.apache.hadoop.security.token.SecretManager.InvalidToken
  • Field Summary

    Fields inherited from class org.apache.hadoop.security.token.SecretManager

    LOG
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    createMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
     
    getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
     
    boolean
    hasMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
     
    void
    registerApplication(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID, SecretKey key)
     
    registerMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID, byte[] keyData)
     
    void
    unRegisterApplication(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
     

    Methods inherited from class org.apache.hadoop.yarn.security.client.BaseClientToAMTokenSecretManager

    createIdentifier, createPassword, retrievePassword

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

    checkAvailableForRead, createPassword, createSecretKey, generateSecret, retriableRetrievePassword, update, validateSecretKeyLength

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClientToAMTokenSecretManagerInRM

      public ClientToAMTokenSecretManagerInRM()
  • Method Details

    • createMasterKey

      public SecretKey createMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
    • registerApplication

      public void registerApplication(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID, SecretKey key)
    • registerMasterKey

      public SecretKey registerMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID, byte[] keyData)
    • unRegisterApplication

      public void unRegisterApplication(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
    • getMasterKey

      public SecretKey getMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)
      Specified by:
      getMasterKey in class org.apache.hadoop.yarn.security.client.BaseClientToAMTokenSecretManager
    • hasMasterKey

      @VisibleForTesting public boolean hasMasterKey(org.apache.hadoop.yarn.api.records.ApplicationAttemptId applicationAttemptID)