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.
|
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 |
getKerberosHostName()
Returns the "instance" component of the Kerberos principal for the Avatica server,
e.g.
|
default File |
getKerberosKeytab()
Returns the file to the server's Kerberos keytab.
|
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.
|
String |
getKerberosServiceName()
Returns the "primary" component of the Kerberos principal for the Avatica server,
e.g.
|
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.
|
AuthenticationType getAuthenticationType()
HttpServer
should use.String getKerberosRealm()
getAuthenticationType()
returns AuthenticationType.SPNEGO
.String getKerberosServiceName()
String getKerberosHostName()
String getKerberosPrincipal()
default File getKerberosKeytab()
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.Exception
to deny a remoteUser access
RemoteUserExtractor getRemoteUserExtractor()
Copyright © 2012-2024 Apache Software Foundation. All Rights Reserved.