org.wso2.carbon.apacheds
Enum KdcConfiguration.ProtocolType
java.lang.Object
java.lang.Enum<KdcConfiguration.ProtocolType>
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.
TCP_PROTOCOL
public static final KdcConfiguration.ProtocolType TCP_PROTOCOL
UDP_PROTOCOL
public static final KdcConfiguration.ProtocolType UDP_PROTOCOL
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.