Class SSLVersionRange


  • public class SSLVersionRange
    extends java.lang.Object
    • Field Detail

      • ssl3

        @Deprecated
        public static final int ssl3
        Deprecated.
        Replaced with SSLVersion.SSL_3_0.
        See Also:
        Constant Field Values
      • tls1_0

        @Deprecated
        public static final int tls1_0
        Deprecated.
        Replaced with SSLVersion.TLS_1_0.
        See Also:
        Constant Field Values
      • tls1_1

        @Deprecated
        public static final int tls1_1
        Deprecated.
        Replaced with SSLVersion.TLS_1_1.
        See Also:
        Constant Field Values
      • tls1_2

        @Deprecated
        public static final int tls1_2
        Deprecated.
        Replaced with SSLVersion.TLS_1_2.
        See Also:
        Constant Field Values
      • tls1_3

        @Deprecated
        public static final int tls1_3
        Deprecated.
        Replaced with SSLVersion.TLS_1_3.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SSLVersionRange

        public SSLVersionRange​(SSLVersion minVersion,
                               SSLVersion maxVersion)
                        throws java.lang.IllegalArgumentException
        Throws:
        java.lang.IllegalArgumentException
      • SSLVersionRange

        @Deprecated
        public SSLVersionRange​(int min_enum,
                               int max_enum)
                        throws java.lang.IllegalArgumentException
        Deprecated.
        Replaced with SSLVersionRange(SSLVersion minVersion, SSLVersion maxVersion).
        Used by the C code, do not use it directly
        Parameters:
        min_enum -
        max_enum -
        Throws:
        java.lang.IllegalArgumentException
    • Method Detail

      • getMinVersion

        public SSLVersion getMinVersion()
      • getMaxVersion

        public SSLVersion getMaxVersion()
      • getMinEnum

        public int getMinEnum()
        Returns:
        enumeration value
      • getMaxEnum

        public int getMaxEnum()
        Returns:
        enumeration value
      • getAllInRange

        public SSLVersion[] getAllInRange()
        Gets all of the SSLVersions in this range, including endpoints.
        Returns:
        All SSLVersions in this range
      • boundBy

        public SSLVersionRange boundBy​(SSLVersionRange bound)
        Bounds this SSLVersionRange by the given range. The resulting SSLVersionRange does not has a minimum less than that of its bound and does not have a maximum greater than that of its bound.