public enum PrincipalNameType extends Enum<PrincipalNameType>
Enum Constant and Description |
---|
KRB_NT_ENTERPRISE
Constant for the "Enterprise name; may be mapped to principal name" principal name type.
|
KRB_NT_PRINCIPAL
Constant for the "Just the name of the principal as in DCE, or for users" principal name type.
|
KRB_NT_SMTP_NAME
Constant for the "Name in form of SMTP email name (e.g., user@example.com)" principal name type.
|
KRB_NT_SRV_HST
Constant for the "Service with host name as instance (telnet, rcommands)" principal name type.
|
KRB_NT_SRV_INST
Constant for the "Service and other unique instance (krbtgt)" principal name type.
|
KRB_NT_SRV_XHST
Constant for the "Service with host as remaining components" principal name type.
|
KRB_NT_UID
Constant for the "Unique ID" principal name type.
|
KRB_NT_UNKNOWN
Constant for the "Name type not known" principal name type.
|
KRB_NT_X500_PRINCIPAL
Constant for the "Encoded X.509 Distinguished name [RFC2253]" principal name type.
|
Modifier and Type | Method and Description |
---|---|
static PrincipalNameType |
getTypeByValue(int type)
Returns the principal name type when specified by its ordinal.
|
int |
getValue()
Returns the number associated with this principal name type.
|
String |
toString() |
static PrincipalNameType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PrincipalNameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PrincipalNameType KRB_NT_UNKNOWN
public static final PrincipalNameType KRB_NT_PRINCIPAL
public static final PrincipalNameType KRB_NT_SRV_INST
public static final PrincipalNameType KRB_NT_SRV_HST
public static final PrincipalNameType KRB_NT_SRV_XHST
public static final PrincipalNameType KRB_NT_UID
public static final PrincipalNameType KRB_NT_X500_PRINCIPAL
public static final PrincipalNameType KRB_NT_SMTP_NAME
public static final PrincipalNameType KRB_NT_ENTERPRISE
public static PrincipalNameType[] values()
for (PrincipalNameType c : PrincipalNameType.values()) System.out.println(c);
public static PrincipalNameType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static PrincipalNameType getTypeByValue(int type)
type
- public int getValue()
public String toString()
toString
in class Enum<PrincipalNameType>
Object.toString()
Copyright © 2003–2020 The Apache Software Foundation. All rights reserved.