Enum Protocol

    • Enum Constant Detail

      • SSLv2

        public static final Protocol SSLv2
        The SSL version 2 protocol.
      • SSLv3

        public static final Protocol SSLv3
        The SSL version 3 protocol.
      • TLSv1

        public static final Protocol TLSv1
        The TLS version 1.0 protocol.
      • TLSv1_1

        public static final Protocol TLSv1_1
        The TLS version 1.1 protocol. Note that there are no cipher suites which are specifically defined in this protocol.
      • TLSv1_2

        public static final Protocol TLSv1_2
        The TLS version 1.2 protocol.
      • TLSv1_3

        public static final Protocol TLSv1_3
        The TLS version 1.3 protocol.
      • SSLv2Hello

        public static final Protocol SSLv2Hello
        The SSL version 2 hello protocol
    • Field Detail

      • name

        public final String name
    • 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
      • forName

        public static Protocol forName​(String name)
        Gets an enum item for given protocol name.
        Parameters:
        name - the protocol name
        Returns:
        an enum item
      • isFull

        public static boolean isFull​(EnumSet<Protocol> protocols)
        Determine whether the given set is "full" (meaning it contains all possible values).
        Parameters:
        protocols - the set
        Returns:
        true if the set is full, false otherwise
      • in

        public boolean in​(Protocol value1,
                          Protocol value2)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        value1 - the first instance
        value2 - the second instance
        Returns:
        true if one of the instances matches this one, false otherwise
      • in

        public boolean in​(Protocol value1,
                          Protocol value2,
                          Protocol value3)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        value1 - the first instance
        value2 - the second instance
        value3 - the third instance
        Returns:
        true if one of the instances matches this one, false otherwise
      • in

        public boolean in​(Protocol... values)
        Determine whether this instance is equal to one of the given instances.
        Parameters:
        values - the values to match against
        Returns:
        true if one of the instances matches this one, false otherwise