Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for reauthenticate (0.18 sec)

  1. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        }
    
        // Happy path: reauthenticate completes without exception
        @Test
        @DisplayName("reauthenticate performs call without exception")
        void reauthenticate_happy() throws CIFSException {
            session.reauthenticate();
            verify(session).reauthenticate();
        }
    
        // Error propagation: reauthenticate throws CIFSException
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplTest.java

            assertFalse(session.isSignatureSetupRequired());
        }
    
        @Test
        @DisplayName("reauthenticate propagates transport failures")
        void testReauthenticatePropagates() throws Exception {
            SmbSessionImpl session = newSession();
            // Cause the inner reauthenticate to fail at first transport call
            when(transport.getNegotiateResponse()).thenThrow(new SmbException("fail"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionInternal.java

         */
        SmbTree getSmbTree(String share, String service);
    
        /**
         * Initiate reauthentication
         *
         * @throws CIFSException if reauthentication fails
         */
        void reauthenticate() throws CIFSException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                    }
                }
            }
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void reauthenticate() throws CIFSException {
            try (SmbTransportImpl trans = getTransport()) {
                reauthenticate(trans, this.targetDomain, null, null, Collections.EMPTY_SET);
            }
        }
    
        /**
         * @param trans
         * @param andx
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/http/NtlmSsp.java

     */
    
    public class NtlmSsp implements NtlmFlags {
    
        /**
         * Default constructor.
         */
        public NtlmSsp() {
            // Default constructor
        }
    
        /**
         * Calls the static {@link #authenticate(HttpServletRequest,
         * HttpServletResponse, byte[])} method to perform NTLM authentication
         * for the specified servlet request.
         *
         * @param req The request being serviced.
         * @param resp The response.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmServletTest.java

            lenient().when(request.isSecure()).thenReturn(true);
    
            ntlmServlet.service(request, response);
    
            verify(response).setHeader("WWW-Authenticate", "NTLM");
            verify(response).addHeader("WWW-Authenticate", "Basic realm=\"TestRealm\"");
            verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmSsp.java

    @Deprecated
    public class NtlmSsp implements NtlmFlags {
    
        /**
         * Default constructor.
         */
        public NtlmSsp() {
            // Default constructor
        }
    
        /**
         * Calls the static {@link #authenticate(CIFSContext, HttpServletRequest,
         * HttpServletResponse, byte[])} method to perform NTLM authentication
         * for the specified servlet request.
         *
         * @param tc the CIFS context to use
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                            ssn.removeAttribute("NtlmHttpAuth");
                        }
                    }
                    resp.setHeader("WWW-Authenticate", "NTLM");
                    if (offerBasic) {
                        resp.addHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\"");
                    }
                    resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmServlet.java

                }
                try {
                    SmbSession.logon(dc, ntlm);
                } catch (final SmbAuthException sae) {
                    response.setHeader("WWW-Authenticate", "NTLM");
                    if (offerBasic) {
                        response.addHeader("WWW-Authenticate", "Basic realm=\"" + realm + "\"");
                    }
                    response.setHeader("Connection", "close");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmSspTest.java

            // Execute
            NtlmPasswordAuthentication result = NtlmSsp.authenticate(mockCifsContext, mockRequest, mockResponse, challenge);
    
            // Verify
            assertNull(result, "Authentication result should be null");
            verify(mockResponse).setHeader("WWW-Authenticate", "NTLM");
            verify(mockResponse).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top