public class TCredentialsUpdatingInvocationHandler<I> extends Object implements InvocationHandler
Modifier | Constructor and Description |
---|---|
protected |
TCredentialsUpdatingInvocationHandler(I serverInstance,
AccumuloConfiguration conf) |
Modifier and Type | Method and Description |
---|---|
protected ConcurrentHashMap<String,Class<? extends AuthenticationToken>> |
getTokenCache()
Visibile for testing
|
protected Class<? extends AuthenticationToken> |
getTokenClassFromName(String tokenClassName) |
Object |
invoke(Object proxy,
Method method,
Object[] args) |
protected void |
principalMismatch(String expected,
String actual) |
protected void |
updateArgs(Object[] args)
Try to find a TCredentials object in the argument list, and, when the AuthenticationToken is a
KerberosToken, set the principal from the SASL server as the TCredentials principal.
|
protected TCredentialsUpdatingInvocationHandler(I serverInstance, AccumuloConfiguration conf)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
protected void updateArgs(Object[] args) throws ThriftSecurityException
ThriftSecurityException
protected void principalMismatch(String expected, String actual) throws ThriftSecurityException
ThriftSecurityException
protected Class<? extends AuthenticationToken> getTokenClassFromName(String tokenClassName)
protected ConcurrentHashMap<String,Class<? extends AuthenticationToken>> getTokenCache()
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.