Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for canParseAsIpAddress (0.1 sec)

  1. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        assertThat("1080:0:0:0:8:800:200C:417A".canParseAsIpAddress()).isTrue()
        assertThat("1080::8:800:200C:417A".canParseAsIpAddress()).isTrue()
        assertThat("FF01::101".canParseAsIpAddress()).isTrue()
        assertThat("0:0:0:0:0:0:13.1.68.3".canParseAsIpAddress()).isTrue()
        assertThat("0:0:0:0:0:FFFF:129.144.52.38".canParseAsIpAddress()).isTrue()
        assertThat("::13.1.68.3".canParseAsIpAddress()).isTrue()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  2. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

    import java.security.interfaces.RSAPrivateKey
    import java.security.interfaces.RSAPublicKey
    import java.security.spec.PKCS8EncodedKeySpec
    import java.util.UUID
    import java.util.concurrent.TimeUnit
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.tls.internal.der.AlgorithmIdentifier
    import okhttp3.tls.internal.der.AttributeTypeAndValue
    import okhttp3.tls.internal.der.BasicConstraints
    import okhttp3.tls.internal.der.BitString
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Cookie.kt

    import java.util.Collections
    import java.util.Date
    import java.util.GregorianCalendar
    import java.util.Locale
    import java.util.regex.Pattern
    import okhttp3.internal.UTC
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.delimiterOffset
    import okhttp3.internal.http.MAX_DATE
    import okhttp3.internal.http.toHttpDateString
    import okhttp3.internal.indexOfControlOrNonAscii
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:12:05 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

     * verification).
     */
    private val VERIFY_AS_IP_ADDRESS = "([0-9a-fA-F]*:[0-9a-fA-F:.]*)|([\\d.]+)".toRegex()
    
    /** Returns true if this string is not a host name and might be an IP address. */
    fun String.canParseAsIpAddress(): Boolean = VERIFY_AS_IP_ADDRESS.matches(this)
    
    /**
     * Returns true if the length is not valid for DNS (empty or greater than 253 characters), or if any
     * label is longer than 63 characters. Trailing dots are okay.
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top