Enum TLSProtocol

  • All Implemented Interfaces:
    Serializable, Comparable<TLSProtocol>

    public enum TLSProtocol
    extends Enum<TLSProtocol>

    TLSProtocol enumerates all currently supported TLS (Transport Layer Security) protocol versions for encrypted HTTPS connections.

    Information: TLS is the follow up protocol of the (better known) SSL (Secure Socket Layer) protocol - SSL is no longer supported by the webPDF wsclient, as it is obsolete and insecure.

    See Also:
    TLSV1, TLSV1_1, TLSV1_2, TLSV1_3
    • Enum Constant Detail

      • TLSV1

        public static final TLSProtocol TLSV1
        Transport Layer Security (protocol) version 1.0
      • TLSV1_1

        public static final TLSProtocol TLSV1_1
        Transport Layer Security (protocol) version 1.1
      • TLSV1_2

        public static final TLSProtocol TLSV1_2
        Transport Layer Security (protocol) version 1.2
      • TLSV1_3

        public static final TLSProtocol TLSV1_3
        Transport Layer Security (protocol) version 1.3
    • Method Detail

      • values

        public static TLSProtocol[] 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 (TLSProtocol c : TLSProtocol.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TLSProtocol 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
      • getName

        @NotNull
        public @NotNull String getName()
        Returns the name of the supported TLSProtocol.
        Returns:
        The name of the supported TLSProtocol.