Package io.prestosql.server.security
Class KerberosConfig
- java.lang.Object
-
- io.prestosql.server.security.KerberosConfig
-
public class KerberosConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
HTTP_SERVER_AUTHENTICATION_KRB5_KEYTAB
-
Constructor Summary
Constructors Constructor Description KerberosConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull @FileExists File
getKerberosConfig()
@FileExists File
getKeytab()
@NotNull KerberosNameType
getNameType()
String
getPrincipalHostname()
@NotNull String
getServiceName()
Optional<@FileExists File>
getUserMappingFile()
Optional<String>
getUserMappingPattern()
KerberosConfig
setKerberosConfig(File kerberosConfig)
KerberosConfig
setKeytab(File keytab)
KerberosConfig
setNameType(KerberosNameType nameType)
KerberosConfig
setPrincipalHostname(String principalHostname)
KerberosConfig
setServiceName(String serviceName)
KerberosConfig
setUserMappingFile(File userMappingFile)
KerberosConfig
setUserMappingPattern(String userMappingPattern)
-
-
-
Field Detail
-
HTTP_SERVER_AUTHENTICATION_KRB5_KEYTAB
public static final String HTTP_SERVER_AUTHENTICATION_KRB5_KEYTAB
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKerberosConfig
@NotNull @FileExists public @NotNull @FileExists File getKerberosConfig()
-
setKerberosConfig
@Config("http.authentication.krb5.config") public KerberosConfig setKerberosConfig(File kerberosConfig)
-
getServiceName
@NotNull public @NotNull String getServiceName()
-
setServiceName
@Config("http-server.authentication.krb5.service-name") @LegacyConfig("http.server.authentication.krb5.service-name") public KerberosConfig setServiceName(String serviceName)
-
getKeytab
@FileExists public @FileExists File getKeytab()
-
setKeytab
@Config("http-server.authentication.krb5.keytab") @LegacyConfig("http.server.authentication.krb5.keytab") public KerberosConfig setKeytab(File keytab)
-
getPrincipalHostname
public String getPrincipalHostname()
-
setPrincipalHostname
@Config("http-server.authentication.krb5.principal-hostname") @LegacyConfig("http.server.authentication.krb5.principal-hostname") public KerberosConfig setPrincipalHostname(String principalHostname)
-
getNameType
@NotNull public @NotNull KerberosNameType getNameType()
-
setNameType
@Config("http-server.authentication.krb5.name-type") @LegacyConfig("http.server.authentication.krb5.name-type") public KerberosConfig setNameType(KerberosNameType nameType)
-
setUserMappingPattern
@Config("http-server.authentication.krb5.user-mapping.pattern") public KerberosConfig setUserMappingPattern(String userMappingPattern)
-
setUserMappingFile
@Config("http-server.authentication.krb5.user-mapping.file") public KerberosConfig setUserMappingFile(File userMappingFile)
-
-