Enum FtpUtils.CryptMethod
- java.lang.Object
-
- java.lang.Enum<FtpUtils.CryptMethod>
-
- com.openindex.openestate.tool.utils.FtpUtils.CryptMethod
-
- All Implemented Interfaces:
Translatable
,Serializable
,Comparable<FtpUtils.CryptMethod>
- Enclosing class:
- FtpUtils
public static enum FtpUtils.CryptMethod extends Enum<FtpUtils.CryptMethod> implements Translatable
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FTPS_EXPLICIT
FTPS_IMPLICIT
NO_ENCRYPTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getTranslation()
String
getTranslation(Locale locale)
static FtpUtils.CryptMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static FtpUtils.CryptMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_ENCRYPTION
public static final FtpUtils.CryptMethod NO_ENCRYPTION
-
FTPS_EXPLICIT
public static final FtpUtils.CryptMethod FTPS_EXPLICIT
-
FTPS_IMPLICIT
public static final FtpUtils.CryptMethod FTPS_IMPLICIT
-
-
Method Detail
-
values
public static FtpUtils.CryptMethod[] 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 (FtpUtils.CryptMethod c : FtpUtils.CryptMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FtpUtils.CryptMethod 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 nameNullPointerException
- if the argument is null
-
getTranslation
public String getTranslation()
- Specified by:
getTranslation
in interfaceTranslatable
-
getTranslation
public String getTranslation(Locale locale)
- Specified by:
getTranslation
in interfaceTranslatable
-
-