org.wso2.carbon.apacheds
Enum KdcConfiguration.ProtocolType

java.lang.Object
  extended by java.lang.Enum<KdcConfiguration.ProtocolType>
      extended by org.wso2.carbon.apacheds.KdcConfiguration.ProtocolType
All Implemented Interfaces:
Serializable, Comparable<KdcConfiguration.ProtocolType>
Enclosing class:
KdcConfiguration

public static enum KdcConfiguration.ProtocolType
extends Enum<KdcConfiguration.ProtocolType>

An enumeration to select the protocol type which KDC is going to communicate. At the moment there are only 2 protocols. They are TCP and UDP.


Enum Constant Summary
TCP_PROTOCOL
           
UDP_PROTOCOL
           
 
Method Summary
static KdcConfiguration.ProtocolType getProtocolType(String protocolName)
           
static KdcConfiguration.ProtocolType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KdcConfiguration.ProtocolType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TCP_PROTOCOL

public static final KdcConfiguration.ProtocolType TCP_PROTOCOL

UDP_PROTOCOL

public static final KdcConfiguration.ProtocolType UDP_PROTOCOL
Method Detail

values

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

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

valueOf

public static KdcConfiguration.ProtocolType 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 name
NullPointerException - if the argument is null

getProtocolType

public static KdcConfiguration.ProtocolType getProtocolType(String protocolName)
                                                     throws DirectoryServerException
Throws:
DirectoryServerException


Copyright © 2015 WSO2. All rights reserved.