org.apache.directory.server.kerberos.shared.messages.value.types
Enum HostAddrType

java.lang.Object
  extended by java.lang.Enum<HostAddrType>
      extended by org.apache.directory.server.kerberos.shared.messages.value.types.HostAddrType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HostAddrType>

public enum HostAddrType
extends java.lang.Enum<HostAddrType>

Host Address type. Theyare described in RFC 4120, chap. 7.5.3. Only a few of them are declared : Address Type Value IPv4 2 Directional 3 ChaosNet 5 XNS 6 ISO 7 DECNET Phase IV 12 AppleTalk DDP 16 NetBios 20 IPv6 24 The other address types are simply ignored. They are part of a Unix include file.

Version:
$Rev: 540371 $, $Date: 2007-05-22 02:00:43 +0200 (Tue, 22 May 2007) $
Author:
Apache Directory Project
TODO
find the original include where those ignored values come from To be realistic, we may encounter IPv4, IPv6 and NetBios addresses in the real world...

Enum Constant Summary
ADDRTYPE_APPLETALK
          Constant for the "AppleTalk" host address type.
ADDRTYPE_CHAOS
          Constant for the "CHAOS" host address type.
ADDRTYPE_DECNET
          Constant for the "DECnet" host address type.
ADDRTYPE_IMPLINK
          Constant for the "Arpanet" host address type.
ADDRTYPE_INET
          Constant for the "Internet" host address type.
ADDRTYPE_INET6
          Constant for the "Internet Protocol V6" host address type.
ADDRTYPE_NETBIOS
          Constant for the "NetBios" host address type.
ADDRTYPE_OSI
          Constant for the "OSI" host address type.
ADDRTYPE_XNS
          Constant for the "XEROX Network Services" host address type.
NULL
          Constant for the "null" host address type.
 
Method Summary
 int getOrdinal()
          Returns the number associated with this host address type.
static HostAddrType getTypeByOrdinal(int type)
          Returns the host address type when specified by its ordinal.
 java.lang.String toString()
           
static HostAddrType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HostAddrType[] 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

NULL

public static final HostAddrType NULL
Constant for the "null" host address type.


ADDRTYPE_INET

public static final HostAddrType ADDRTYPE_INET
Constant for the "Internet" host address type.


ADDRTYPE_IMPLINK

public static final HostAddrType ADDRTYPE_IMPLINK
Constant for the "Arpanet" host address type.


ADDRTYPE_CHAOS

public static final HostAddrType ADDRTYPE_CHAOS
Constant for the "CHAOS" host address type.


ADDRTYPE_XNS

public static final HostAddrType ADDRTYPE_XNS
Constant for the "XEROX Network Services" host address type.


ADDRTYPE_OSI

public static final HostAddrType ADDRTYPE_OSI
Constant for the "OSI" host address type.


ADDRTYPE_DECNET

public static final HostAddrType ADDRTYPE_DECNET
Constant for the "DECnet" host address type.


ADDRTYPE_APPLETALK

public static final HostAddrType ADDRTYPE_APPLETALK
Constant for the "AppleTalk" host address type.


ADDRTYPE_NETBIOS

public static final HostAddrType ADDRTYPE_NETBIOS
Constant for the "NetBios" host address type. Not in RFC


ADDRTYPE_INET6

public static final HostAddrType ADDRTYPE_INET6
Constant for the "Internet Protocol V6" host address type.

Method Detail

values

public static HostAddrType[] 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 (HostAddrType c : HostAddrType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static HostAddrType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTypeByOrdinal

public static HostAddrType getTypeByOrdinal(int type)
Returns the host address type when specified by its ordinal.

Parameters:
type -
Returns:
The host address type.

getOrdinal

public int getOrdinal()
Returns the number associated with this host address type.

Returns:
The host address type ordinal.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<HostAddrType>


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.