|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PrincipalNameType>
org.apache.directory.shared.kerberos.codec.types.PrincipalNameType
public enum PrincipalNameType
An enum describing the differnet types of Principal. Here is the list, taken from RFC 4120 : NT-UNKNOWN 0 Name type not known NT-PRINCIPAL 1 Just the name of the principal as in DCE, or for users NT-SRV-INST 2 Service and other unique instance (krbtgt) NT-SRV-HST 3 Service with host name as instance (telnet, rcommands) NT-SRV-XHST 4 Service with host as remaining components NT-UID 5 Unique ID NT-X500-PRINCIPAL 6 Encoded X.509 Distinguished name [RFC2253] NT-SMTP-NAME 7 Name in form of SMTP email name (e.g., user@example.com) NT-ENTERPRISE 10 Enterprise name - may be mapped to principal name
| Enum Constant Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic static PrincipalNameType getTypeByValue(int type)
type -
public int getValue()
public String toString()
toString in class Enum<PrincipalNameType>Object.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||