Class TestRpcCoprocessor.AuthorizationRpcObserver
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestRpcCoprocessor.AuthorizationRpcObserver
- All Implemented Interfaces:
org.apache.hadoop.hbase.Coprocessor,org.apache.hadoop.hbase.coprocessor.RpcCoprocessor,org.apache.hadoop.hbase.coprocessor.RpcObserver
- Enclosing class:
- TestRpcCoprocessor
public static class TestRpcCoprocessor.AuthorizationRpcObserver
extends Object
implements org.apache.hadoop.hbase.coprocessor.RpcCoprocessor, org.apache.hadoop.hbase.coprocessor.RpcObserver
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.hbase.Coprocessor
org.apache.hadoop.hbase.Coprocessor.State -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final AtomicInteger(package private) final AtomicInteger(package private) StringFields inherited from interface org.apache.hadoop.hbase.Coprocessor
PRIORITY_HIGHEST, PRIORITY_LOWEST, PRIORITY_SYSTEM, PRIORITY_USER, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<org.apache.hadoop.hbase.coprocessor.RpcObserver>voidpostAuthorizeConnection(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RpcCoprocessorEnvironment> ctx, String userName, X509Certificate[] clientCertificateChain) voidpreAuthorizeConnection(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RpcCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader connectionHeader, InetAddress remoteAddr) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.Coprocessor
getServices, start, stop
-
Field Details
-
ctPostAuthorization
-
ctPreAuthorization
-
userName
-
-
Constructor Details
-
AuthorizationRpcObserver
public AuthorizationRpcObserver()
-
-
Method Details
-
getRpcObserver
- Specified by:
getRpcObserverin interfaceorg.apache.hadoop.hbase.coprocessor.RpcCoprocessor
-
preAuthorizeConnection
public void preAuthorizeConnection(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RpcCoprocessorEnvironment> ctx, org.apache.hadoop.hbase.shaded.protobuf.generated.RPCProtos.ConnectionHeader connectionHeader, InetAddress remoteAddr) throws IOException - Specified by:
preAuthorizeConnectionin interfaceorg.apache.hadoop.hbase.coprocessor.RpcObserver- Throws:
IOException
-
postAuthorizeConnection
public void postAuthorizeConnection(org.apache.hadoop.hbase.coprocessor.ObserverContext<org.apache.hadoop.hbase.coprocessor.RpcCoprocessorEnvironment> ctx, String userName, X509Certificate[] clientCertificateChain) throws IOException - Specified by:
postAuthorizeConnectionin interfaceorg.apache.hadoop.hbase.coprocessor.RpcObserver- Throws:
IOException
-