Package io.trino.server.security
Class SecurityConfig
- java.lang.Object
-
- io.trino.server.security.SecurityConfig
-
@DefunctConfig({"http.server.authentication.enabled","http-server.authentication.allow-forwarded-https","dispatcher.forwarded-header"}) public class SecurityConfig extends Object
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull @NotEmpty(message="http-server.authentication.type cannot be empty") List<String>getAuthenticationTypes()Optional<String>getFixedManagementUser()booleanisFixedManagementUserForHttps()booleanisInsecureAuthenticationOverHttpAllowed()SecurityConfigsetAuthenticationTypes(String types)SecurityConfigsetAuthenticationTypes(List<String> authenticationTypes)SecurityConfigsetFixedManagementUser(String fixedManagementUser)SecurityConfigsetFixedManagementUserForHttps(boolean fixedManagementUserForHttps)SecurityConfigsetInsecureAuthenticationOverHttpAllowed(boolean insecureAuthenticationOverHttpAllowed)
-
-
-
Method Detail
-
isInsecureAuthenticationOverHttpAllowed
public boolean isInsecureAuthenticationOverHttpAllowed()
-
setInsecureAuthenticationOverHttpAllowed
@Config("http-server.authentication.allow-insecure-over-http") public SecurityConfig setInsecureAuthenticationOverHttpAllowed(boolean insecureAuthenticationOverHttpAllowed)
-
getAuthenticationTypes
@NotNull @NotEmpty(message="http-server.authentication.type cannot be empty") public @NotNull @NotEmpty(message="http-server.authentication.type cannot be empty") List<String> getAuthenticationTypes()
-
setAuthenticationTypes
public SecurityConfig setAuthenticationTypes(List<String> authenticationTypes)
-
setAuthenticationTypes
@Config("http-server.authentication.type") public SecurityConfig setAuthenticationTypes(String types)
-
setFixedManagementUser
@Config("management.user") public SecurityConfig setFixedManagementUser(String fixedManagementUser)
-
isFixedManagementUserForHttps
public boolean isFixedManagementUserForHttps()
-
setFixedManagementUserForHttps
@Config("management.user.https-enabled") public SecurityConfig setFixedManagementUserForHttps(boolean fixedManagementUserForHttps)
-
-