Enum Class ApiRunner.SecurityMode
- All Implemented Interfaces:
Serializable, Comparable<ApiRunner.SecurityMode>, Constable
- Enclosing class:
ApiRunner
Controls how the standalone session handles settings encryption/decryption.
Maven settings (settings.xml) may contain encrypted server passwords.
Decryption requires the plexus-sec-dispatcher library on the classpath.
This enum lets callers control the behavior when dispatchers are (or are not) available.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionTry to configure security dispatchers; silently skip if the required classes are not on the classpath.Try to configure security dispatchers; warn toSystem.errif the required classes are not on the classpath.Do not attempt to configure security dispatchers.Security dispatchers are required; throwMavenExceptionif they cannot be configured. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiRunner.SecurityModeReturns the enum constant of this class with the specified name.static ApiRunner.SecurityMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
Do not attempt to configure security dispatchers. Encrypted passwords are passed through as-is. -
IF_AVAILABLE
Try to configure security dispatchers; silently skip if the required classes are not on the classpath. -
IF_AVAILABLE_WARN
Try to configure security dispatchers; warn toSystem.errif the required classes are not on the classpath. This is the default. -
REQUIRED
Security dispatchers are required; throwMavenExceptionif they cannot be configured.
-
-
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
-