Package org.apache.accumulo.server.rpc
Class TCredentialsUpdatingWrapper
java.lang.Object
org.apache.accumulo.server.rpc.TCredentialsUpdatingWrapper
Utility method to ensure that the instance of TCredentials which is passed to the implementation
of a Thrift service has the correct principal from SASL at the Thrift transport layer when
SASL/GSSAPI (kerberos) is enabled. This ensures that we use the strong authentication provided to
us and disallow any other principal names that client (malicious or otherwise) might pass in.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> T
service
(T instance, Class<? extends T> originalClass, AccumuloConfiguration conf)
-
Constructor Details
-
TCredentialsUpdatingWrapper
public TCredentialsUpdatingWrapper()
-
-
Method Details
-
service
public static <T> T service(T instance, Class<? extends T> originalClass, AccumuloConfiguration conf)
-