Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for Challenge (0.05 sec)

  1. src/main/java/jcifs/smb/NtlmUtil.java

         * @param password the password to hash
         * @param challenge the server challenge bytes
         * @return the calculated response
         * @throws GeneralSecurityException if a cryptographic error occurs
         */
        public static byte[] getNTLMResponse(final String password, final byte[] challenge) throws GeneralSecurityException {
            return getNTLMResponse(getNTHash(password), challenge);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Arrange
            String password = "password";
            byte[] challenge = hex("1122334455667788");
    
            // Act
            byte[] r1 = NtlmUtil.getNTLMResponse(password, challenge);
            byte[] r2 = NtlmUtil.getNTLMResponse(NtlmUtil.getNTHash(password), challenge);
    
            // Assert
            assertArrayEquals(r2, r1);
            assertEquals(24, r1.length);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (1)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            return NtlmContext.NTLMSSP_OID.equals(mechanism);
        }
    
        /**
         * Computes the 24 byte ANSI password hash given the 8 byte server challenge.
         *
         * @param tc the CIFS context
         * @param chlng the server challenge
         * @return the hash for the given challenge
         * @throws GeneralSecurityException if a security error occurs
         * @deprecated NTLMv1 is insecure. Use NTLMv2 (LM compatibility level 3 or higher)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                        }
                        dc = chal.dc;
                        challenge = chal.challenge;
                    } else {
                        dc = UniAddress.getByName(domainController, true);
                        challenge = SmbSession.getChallenge(dc);
                    }
    
                    ntlm = NtlmSsp.authenticate(req, resp, challenge);
                    if (ntlm == null) {
                        return null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/ntlm/JcifsEngine.java

         * Generates a Type 3 NTLM message.
         *
         * @param username the username
         * @param password the password
         * @param domain the domain
         * @param workstation the workstation
         * @param challenge the Type 2 challenge message
         * @return the Base64-encoded Type 3 message
         * @throws NTLMEngineException if an NTLM engine error occurs
         * @throws CrawlingAccessException if an error occurs during message generation
         */
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmSspTest.java

        @Mock
        private HttpServletRequest mockRequest;
    
        @Mock
        private HttpServletResponse mockResponse;
    
        private NtlmSsp ntlmSsp;
    
        // A sample challenge array
        private final byte[] challenge = new byte[] { 0x01, 0x23, 0x45, 0x67, (byte) 0x89, (byte) 0xab, (byte) 0xcd, (byte) 0xef };
    
        // Base64 encoded Type 1 message: NTLMSSP, Type 1, flags=0x00088207
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  7. src/main/java/jcifs/http/NtlmHttpFilter.java

                        }
                        dc = chal.dc;
                        challenge = chal.challenge;
                    } else {
                        dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                        challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/AuthenticationProvider.java

         * Authenticates using the provided context
         *
         * @param context the CIFS context
         * @param challenge the server challenge (may be null for some auth types)
         * @return authentication response data
         * @throws CIFSException if authentication fails
         */
        byte[] authenticate(CIFSContext context, byte[] challenge) throws CIFSException;
    
        /**
         * Gets the session key after successful authentication
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  9. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

         * @param username the username to authenticate with
         * @param challenge the server challenge bytes
         * @param ansiHash the ANSI password hash
         * @param unicodeHash the Unicode password hash
         */
        public NtlmPasswordAuthentication(final String domain, final String username, final byte[] challenge, final byte[] ansiHash,
                final byte[] unicodeHash) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpFilterTest.java

            // Since we can't mock the internal transport operations easily without real network,
            // we'll test the simpler case where no NTLM negotiation is needed
            when(request.getHeader("Authorization")).thenReturn(null);
    
            filter.doFilter(request, response, filterChain);
    
            // Should challenge the client
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top