AuthorizationContext (Apache Hadoop Common 3.5.0 API)
Description: declaration: package: org.apache.hadoop.security, class: AuthorizationContext

Package org.apache.hadoop.security

# Class AuthorizationContext

java.lang.Object
org.apache.hadoop.security.AuthorizationContext

public final class AuthorizationContext extends Object
Utility for managing a thread-local authorization header for RPC calls.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `clear()`
  `static byte[]`
  `getCurrentAuthorizationHeader()`
  `static void`
  `setCurrentAuthorizationHeader(byte[] header)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### setCurrentAuthorizationHeader

    public static void setCurrentAuthorizationHeader(byte[] header)

  - ### getCurrentAuthorizationHeader

    public static byte[] getCurrentAuthorizationHeader()

  - ### clear

    public static void clear()