Enum Class IP2LocationAdminConfig.TokenOutcome
java.lang.Object
java.lang.Enum<IP2LocationAdminConfig.TokenOutcome>
com.iizix.server.geo.ip2location.IP2LocationAdminConfig.TokenOutcome
- All Implemented Interfaces:
Serializable, Comparable<IP2LocationAdminConfig.TokenOutcome>, Constable
- Enclosing class:
IP2LocationAdminConfig
public static enum IP2LocationAdminConfig.TokenOutcome extends Enum<IP2LocationAdminConfig.TokenOutcome>
What
IP2LocationAdminConfig.applyTo(ServerSettings) did with the token.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe token was set in memory only: the configuration has no secrets context, so it is not persisted anywhere (the administrator is told; the Designer sets$secretsContext).The token is the one the settings already hold: nothing was written.The token was set and marked secret: the server's save stores it in the secrets store.The token is empty: whatever the settings held is unchanged (the service, when enabled, is refused byIP2LocationAdminConfig.validate()before this).Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static IP2LocationAdminConfig.TokenOutcome[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
UNCHANGED
The token is empty: whatever the settings held is unchanged (the service, when enabled, is refused byIP2LocationAdminConfig.validate()before this).SAME
The token is the one the settings already hold: nothing was written.STORED_SECRET
The token was set and marked secret: the server's save stores it in the secrets store.NOT_STORED_NO_SECRETS_CONTEXT
The token was set in memory only: the configuration has no secrets context, so it is not persisted anywhere (the administrator is told; the Designer sets$secretsContext).
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null