Package io.trino.server.security
Enum KerberosNameType
- java.lang.Object
-
- java.lang.Enum<KerberosNameType>
-
- io.trino.server.security.KerberosNameType
-
- All Implemented Interfaces:
Serializable,Comparable<KerberosNameType>
public enum KerberosNameType extends Enum<KerberosNameType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HOSTBASED_SERVICEUSER_NAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract GSSNamegetGSSName(GSSManager gssManager, String serviceName, String hostname)abstract StringmakeServicePrincipal(String serviceName, String hostname)static KerberosNameTypevalueOf(String name)Returns the enum constant of this type with the specified name.static KerberosNameType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HOSTBASED_SERVICE
public static final KerberosNameType HOSTBASED_SERVICE
-
USER_NAME
public static final KerberosNameType USER_NAME
-
-
Method Detail
-
values
public static KerberosNameType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KerberosNameType c : KerberosNameType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KerberosNameType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getGSSName
public abstract GSSName getGSSName(GSSManager gssManager, String serviceName, String hostname)
-
-