Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for HTTP_UNAUTHORIZED (1.95 sec)

  1. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Arrange
            mockResponse(HTTP_UNAUTHORIZED, "Unauthorized",
                    Collections.singletonMap("WWW-Authenticate", Collections.singletonList("Basic realm=\"Test\"")),
                    new ByteArrayInputStream(new byte[0]));
    
            // Act
            int responseCode = ntlmConnection.getResponseCode();
    
            // Assert
            assertEquals(HTTP_UNAUTHORIZED, responseCode);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            }
        }
    
        private void doHandshake() throws IOException {
            connect();
            try {
                int response = parseResponseCode();
                if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) {
                    return;
                }
                final Type1Message type1 = (Type1Message) attemptNegotiation(response);
                if (type1 == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/http/NtlmHttpURLConnection.java

            }
        }
    
        private void doHandshake() throws IOException, GeneralSecurityException {
            connect();
            try {
                int response = parseResponseCode();
                if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) {
                    return;
                }
                final NtlmMessage type1 = attemptNegotiation(response);
                if (type1 == null) {
                    return; // no NTLM
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
Back to top