public interface AvaticaServerConfiguration
HttpServer.| Modifier and Type | Method and Description |
|---|---|
<T> T |
doAsRemoteUser(String remoteUserName,
String remoteAddress,
Callable<T> action)
Invokes the given
action as the remoteUserName. |
String[] |
getAllowedRoles()
Returns the array of allowed roles for login.
|
org.apache.calcite.avatica.remote.AuthenticationType |
getAuthenticationType()
Returns the type of authentication the
HttpServer should use. |
String |
getHashLoginServiceProperties()
Returns the path to a properties file that contains users and realms.
|
String |
getHashLoginServiceRealm()
Returns the name of the realm to use in coordination with the properties files specified
by
getHashLoginServiceProperties(). |
String |
getKerberosPrincipal()
Returns the Kerberos principal that the Avatica server should log in as.
|
String |
getKerberosRealm()
Returns the Kerberos realm to use for the server's login.
|
RemoteUserExtractor |
getRemoteUserExtractor()
Extract the user this request should execute as.
|
boolean |
supportsImpersonation()
Returns true if the Avatica server should run user requests at that remote user.
|
org.apache.calcite.avatica.remote.AuthenticationType getAuthenticationType()
HttpServer should use.String getKerberosRealm()
getAuthenticationType() returns AuthenticationType.SPNEGO.String getKerberosPrincipal()
String[] getAllowedRoles()
getAuthenticationType() returns AuthenticationType.BASIC or
AuthenticationType.DIGEST.String getHashLoginServiceRealm()
getHashLoginServiceProperties(). Only applicable when
getAuthenticationType() returns AuthenticationType.BASIC or
AuthenticationType.DIGEST.String getHashLoginServiceProperties()
getAuthenticationType() returns AuthenticationType.BASIC or
AuthenticationType.DIGEST.boolean supportsImpersonation()
<T> T doAsRemoteUser(String remoteUserName, String remoteAddress, Callable<T> action) throws Exception
action as the remoteUserName. This will only be
invoked if supportsImpersonation() returns true.remoteUserName - The remote user making a request to the Avatica server.remoteAddress - The address the remote user is making the request from.Exceptionto deny a remoteUser accessRemoteUserExtractor getRemoteUserExtractor()
Copyright © 2012-2020 Apache Software Foundation. All Rights Reserved.