Package com.compuware.api.topaz.hosts
Enum Protocol
- java.lang.Object
-
- java.lang.Enum<Protocol>
-
- com.compuware.api.topaz.hosts.Protocol
-
- All Implemented Interfaces:
Serializable
,Comparable<Protocol>
public enum Protocol extends Enum<Protocol>
Enumeration of supported encryption protocols to be used when creating a host.- Since:
- 2.0.0
- Version:
- 1.0.0
- See Also:
HostFactory.createZOSHost(String, int, Protocol, int)
- Restriction:
- This enum is not intended to be extended by clients.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTO_DETERMINE
Indicates that the encryption protocol should be determined automatically.NONE
Indicates that no encryption protocol will be used.SSL_V3
Protocol indicating an encryption type of SSLv3.TLS
Protocol indicating an encryption type of TLS.TLS_V1
Protocol indicating an encryption type of TLSv1.TLS_V1_1
Protocol indicating an encryption type of TLSv1.1.TLS_V1_2
Protocol indicating an encryption type of TLSv1.2.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Gets the value for this protocol.static Protocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static Protocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final Protocol NONE
Indicates that no encryption protocol will be used.- Since:
- 2.0.0
-
AUTO_DETERMINE
public static final Protocol AUTO_DETERMINE
Indicates that the encryption protocol should be determined automatically.This is accomplished by trying each of the supported encryption prototypes (in order of newest to oldest) until a valid one is found, or all fail.
- Since:
- 2.0.0
-
TLS_V1_2
public static final Protocol TLS_V1_2
Protocol indicating an encryption type of TLSv1.2.- Since:
- 2.0.0
-
TLS_V1_1
public static final Protocol TLS_V1_1
Protocol indicating an encryption type of TLSv1.1.- Since:
- 2.0.0
-
TLS_V1
public static final Protocol TLS_V1
Protocol indicating an encryption type of TLSv1.- Since:
- 2.0.0
-
TLS
public static final Protocol TLS
Protocol indicating an encryption type of TLS.- Since:
- 2.0.0
-
SSL_V3
public static final Protocol SSL_V3
Protocol indicating an encryption type of SSLv3.- Since:
- 2.0.0
-
-
Method Detail
-
values
public static Protocol[] 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 (Protocol c : Protocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Protocol 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
-
getValue
public String getValue()
Gets the value for this protocol.- Returns:
- the protocol value
-
-