Package org.eclipse.aether.transfer
Enum HttpTransportProperty.SslProtocol
- java.lang.Object
-
- java.lang.Enum<HttpTransportProperty.SslProtocol>
-
- org.eclipse.aether.transfer.HttpTransportProperty.SslProtocol
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<HttpTransportProperty.SslProtocol>
- Enclosing class:
- HttpTransportProperty
public static enum HttpTransportProperty.SslProtocol extends java.lang.Enum<HttpTransportProperty.SslProtocol>
SSL protocol including version used for the HTTP transport.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HttpTransportProperty.SslProtocolfromStandardName(java.lang.String name)Converts a standard SSL protocol name to the corresponding SslProtocol enum value.java.lang.StringtoString()static HttpTransportProperty.SslProtocolvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static HttpTransportProperty.SslProtocol[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SSL_3_0
public static final HttpTransportProperty.SslProtocol SSL_3_0
-
TLS_1_0
public static final HttpTransportProperty.SslProtocol TLS_1_0
-
TLS_1_1
public static final HttpTransportProperty.SslProtocol TLS_1_1
-
TLS_1_2
public static final HttpTransportProperty.SslProtocol TLS_1_2
-
TLS_1_3
public static final HttpTransportProperty.SslProtocol TLS_1_3
-
-
Method Detail
-
values
public static HttpTransportProperty.SslProtocol[] 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 (HttpTransportProperty.SslProtocol c : HttpTransportProperty.SslProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpTransportProperty.SslProtocol 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<HttpTransportProperty.SslProtocol>
-
fromStandardName
public static HttpTransportProperty.SslProtocol fromStandardName(java.lang.String name)
Converts a standard SSL protocol name to the corresponding SslProtocol enum value.- Parameters:
name- the standard algorithm name of the SSL protocol (e.g., "TLSv1.2", "TLSv1.3")- Returns:
- the corresponding SslProtocol enum value
- See Also:
- Standard Names for SSLContext Algorithms
-
-