Package com.wireguard.config
Enum BadConfigException.Location
- java.lang.Object
-
- java.lang.Enum<BadConfigException.Location>
-
- com.wireguard.config.BadConfigException.Location
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BadConfigException.Location>
- Enclosing class:
- BadConfigException
public static enum BadConfigException.Location extends java.lang.Enum<BadConfigException.Location>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADDRESS
ALLOWED_IPS
DNS
ENDPOINT
EXCLUDED_APPLICATIONS
INCLUDED_APPLICATIONS
LISTEN_PORT
MTU
PERSISTENT_KEEPALIVE
PRE_SHARED_KEY
PRIVATE_KEY
PUBLIC_KEY
TOP_LEVEL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
static BadConfigException.Location
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BadConfigException.Location[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOP_LEVEL
public static final BadConfigException.Location TOP_LEVEL
-
ADDRESS
public static final BadConfigException.Location ADDRESS
-
ALLOWED_IPS
public static final BadConfigException.Location ALLOWED_IPS
-
DNS
public static final BadConfigException.Location DNS
-
ENDPOINT
public static final BadConfigException.Location ENDPOINT
-
EXCLUDED_APPLICATIONS
public static final BadConfigException.Location EXCLUDED_APPLICATIONS
-
INCLUDED_APPLICATIONS
public static final BadConfigException.Location INCLUDED_APPLICATIONS
-
LISTEN_PORT
public static final BadConfigException.Location LISTEN_PORT
-
MTU
public static final BadConfigException.Location MTU
-
PERSISTENT_KEEPALIVE
public static final BadConfigException.Location PERSISTENT_KEEPALIVE
-
PRE_SHARED_KEY
public static final BadConfigException.Location PRE_SHARED_KEY
-
PRIVATE_KEY
public static final BadConfigException.Location PRIVATE_KEY
-
PUBLIC_KEY
public static final BadConfigException.Location PUBLIC_KEY
-
-
Method Detail
-
values
public static BadConfigException.Location[] 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 (BadConfigException.Location c : BadConfigException.Location.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BadConfigException.Location 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 namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
-
-