Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for PASSWORD (0.15 sec)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

        if (args.length != 4) {
          System.out.println("Usage: SampleServer <keystore> <password> <root file> <port>");
          return;
        }
    
        String keystoreFile = args[0];
        String password = args[1];
        String root = args[2];
        int port = Integer.parseInt(args[3]);
    
        SSLContext sslContext = sslContext(keystoreFile, password);
        SampleServer server = new SampleServer(sslContext, root, port);
        server.run();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Jan 02 02:50:44 GMT 2019
    - 4.7K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/RecordingAuthenticator.kt

    import java.net.Authenticator
    import java.net.PasswordAuthentication
    
    class RecordingAuthenticator(
      private val authentication: PasswordAuthentication? =
        PasswordAuthentication(
          "username",
          "password".toCharArray(),
        ),
    ) : Authenticator() {
      val calls = mutableListOf<String>()
    
      override fun getPasswordAuthentication(): PasswordAuthentication? {
        calls.add(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Credentials.kt

    object Credentials {
      /** Returns an auth credential for the Basic scheme. */
      @JvmStatic @JvmOverloads
      fun basic(
        username: String,
        password: String,
        charset: Charset = ISO_8859_1,
      ): String {
        val usernameAndPassword = "$username:$password"
        val encoded = usernameAndPassword.encode(charset).base64()
        return "Basic $encoded"
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.1K bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/kt/YubikeyClientAuth.kt

          if (callback is PasswordCallback) {
            val console = System.console()
    
            if (console != null) {
              callback.password = console.readPassword(callback.prompt)
            } else {
              System.err.println(callback.prompt)
              callback.password = System.`in`.bufferedReader().readLine().toCharArray()
            }
          } else {
            throw UnsupportedCallbackException(callback)
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (1)
  5. samples/guide/src/main/java/okhttp3/recipes/PreemptiveAuth.java

        private final String credentials;
        private final String host;
    
        BasicAuthInterceptor(String host, String username, String password) {
          this.credentials = Credentials.basic(username, password);
          this.host = host;
        }
    
        @Override public Response intercept(Chain chain) throws IOException {
          Request request = chain.request();
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Nov 05 07:46:46 GMT 2018
    - 2.1K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

      var dns: Dns = Dns.SYSTEM
      var proxy: Proxy = Proxy.NO_PROXY
      var proxySelector: ProxySelector = RecordingProxySelector()
      var proxyAuthenticator: Authenticator = RecordingOkAuthenticator("password", null)
      var connectionSpecs: List<ConnectionSpec> =
        listOf(
          ConnectionSpec.MODERN_TLS,
          ConnectionSpec.COMPATIBLE_TLS,
          ConnectionSpec.CLEARTEXT,
        )
      var protocols: List<Protocol> =
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt

      var scheme = ""
      var username = ""
      var password: String? = null
      var host = ""
      var port = ""
      var path = ""
      var query = ""
      var fragment = ""
    
      fun expectParseFailure() = scheme.isEmpty()
    
      private operator fun set(
        name: String,
        value: String,
      ) {
        when (name) {
          "s" -> scheme = value
          "u" -> username = value
          "pass" -> password = value
          "h" -> host = value
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.7K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt

            val credentialHeader = if (proxyAuthorization) "Proxy-Authorization" else "Authorization"
            val credential =
              Credentials.basic(
                auth.userName,
                String(auth.password),
                challenge.charset,
              )
            return request.newBuilder()
              .header(credentialHeader, credential)
              .build()
          }
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/UrlComponentEncodingTesterJvm.kt

      return when (component) {
        Component.USER ->
          UrlComponentEncodingTesterJvmPlatform()
            .escapeForUri('%'.code)
    
        Component.PASSWORD ->
          UrlComponentEncodingTesterJvmPlatform()
            .escapeForUri('%'.code)
    
        Component.HOST ->
          UrlComponentEncodingTesterJvmPlatform()
            .stripForUri(
              '\"'.code,
              '<'.code,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/url/-Url.kt

    import okio.Buffer
    
    internal val HEX_DIGITS =
      charArrayOf('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F')
    internal const val USERNAME_ENCODE_SET = " \"':;<=>@[]^`{}|/\\?#"
    internal const val PASSWORD_ENCODE_SET = " \"':;<=>@[]^`{}|/\\?#"
    internal const val PATH_SEGMENT_ENCODE_SET = " \"<>^`{}|/\\?#"
    internal const val PATH_SEGMENT_ENCODE_SET_URI = "[]"
    internal const val QUERY_ENCODE_SET = " \"'<>#"
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 7.3K bytes
    - Viewed (0)
Back to top