|
@@ -35,7 +35,7 @@ import java.util.Arrays;
|
|
@InterfaceAudience.LimitedPrivate({"HBase", "HDFS", "Hive", "MapReduce",
|
|
@InterfaceAudience.LimitedPrivate({"HBase", "HDFS", "Hive", "MapReduce",
|
|
"Pig", "YARN"})
|
|
"Pig", "YARN"})
|
|
@InterfaceStability.Evolving
|
|
@InterfaceStability.Evolving
|
|
-public class CallerContext {
|
|
|
|
|
|
+public final class CallerContext {
|
|
public static final Charset SIGNATURE_ENCODING = StandardCharsets.UTF_8;
|
|
public static final Charset SIGNATURE_ENCODING = StandardCharsets.UTF_8;
|
|
/** The caller context.
|
|
/** The caller context.
|
|
*
|
|
*
|
|
@@ -54,7 +54,7 @@ public class CallerContext {
|
|
*/
|
|
*/
|
|
private final byte[] signature;
|
|
private final byte[] signature;
|
|
|
|
|
|
- public CallerContext(Builder builder) {
|
|
|
|
|
|
+ private CallerContext(Builder builder) {
|
|
this.context = builder.context;
|
|
this.context = builder.context;
|
|
this.signature = builder.signature;
|
|
this.signature = builder.signature;
|
|
}
|
|
}
|