Enum Protocol

    • 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 name
        NullPointerException - if the argument is null
      • getValue

        public String getValue()
        Gets the value for this protocol.
        Returns:
        the protocol value