Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for getHandshakeServerNames (5.19 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/AndroidPlatform.kt

          super.buildTrustRootIndex(trustManager)
        }
    
      override fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
        // The superclass implementation requires APIs not available until API 24+.
        if (Build.VERSION.SDK_INT < 24) return listOf()
        return super.getHandshakeServerNames(sslSocket)
      }
    
      /**
       * A trust manager for Android applications that customize the trust manager.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/RecordedRequest.kt

       */
      val handshakeServerNames: List<String>
    
      init {
        if (socket is SSLSocket) {
          try {
            this.handshake = socket.session.handshake()
            this.handshakeServerNames = Platform.get().getHandshakeServerNames(socket)
          } catch (e: IOException) {
            throw IllegalArgumentException(e)
          }
        } else {
          this.handshake = null
          this.handshakeServerNames = listOf()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3.8K bytes
    - Viewed (1)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/Platform.kt

      /** For MockWebServer. This returns the inbound SNI names. */
      @SuppressLint("NewApi")
      @IgnoreJRERequirement // This function is overridden to require API >= 24.
      open fun getHandshakeServerNames(sslSocket: SSLSocket): List<String> {
        val session = sslSocket.session as? ExtendedSSLSession ?: return listOf()
        return session.requestedServerNames.mapNotNull { (it as? SNIHostName)?.asciiName }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.8K bytes
    - Viewed (1)
  4. mockwebserver/api/mockwebserver3.api

    	public final fun getBodySize ()J
    	public final fun getChunkSizes ()Ljava/util/List;
    	public final fun getFailure ()Ljava/io/IOException;
    	public final fun getHandshake ()Lokhttp3/Handshake;
    	public final fun getHandshakeServerNames ()Ljava/util/List;
    	public final fun getHeaders ()Lokhttp3/Headers;
    	public final fun getMethod ()Ljava/lang/String;
    	public final fun getPath ()Ljava/lang/String;
    	public final fun getRequestLine ()Ljava/lang/String;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 03 21:59:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
Back to top