Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for testpassword (1.04 sec)

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

            char[] testPassword = "CharArrayPass789!".toCharArray();
            NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("testuser", testPassword);
    
            // Verify password is stored correctly
            assertArrayEquals(testPassword, auth.getPasswordAsCharArray());
            assertEquals(new String(testPassword), auth.getPassword());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

        void testGetPasswordAsCharArray() {
            String testPassword = "securePassword456";
            authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", testPassword);
    
            char[] password = authenticator.getPasswordAsCharArray();
            assertNotNull(password, "Password char array should not be null");
            assertArrayEquals(testPassword.toCharArray(), password, "Password should match");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            constantTimeMethod.setAccessible(true);
    
            // Test the method directly
            char[] password1 = "testpassword".toCharArray();
            char[] password2 = "testpassword".toCharArray();
            char[] password3 = "testpassworX".toCharArray();
    
            Boolean result1 = (Boolean) constantTimeMethod.invoke(null, password1, password2);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

        @DisplayName("Should create Type 3 message with authentication data")
        void testType3MessageCreation() throws Exception {
            // Given
            Type2Message type2 = createMockType2Message();
            String password = "testpassword";
            String domain = "TESTDOMAIN";
            String username = "testuser";
            String workstation = "TESTWS";
            int flags = NtlmFlags.NTLMSSP_NEGOTIATE_UNICODE | NtlmFlags.NTLMSSP_NEGOTIATE_NTLM;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

    class NtlmContextTest {
    
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
        private final String domain = "TEST_DOMAIN";
        private final String username = "testUser";
        private final String password = "testPassword";
        private final String workstation = "TEST_WORKSTATION";
    
        @BeforeEach
        void setUp() {
            // MockitoExtension handles mock initialization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            assertEquals(orig.getUsername(), copy.getUsername());
            assertEquals(orig.getUserDomain(), copy.getUserDomain());
            assertEquals(orig.getPassword(), copy.getPassword());
    
            // Test the cloning behavior with both null and non-null cached subjects
            if (first != null) {
                // If we got a valid subject, test that it's properly cached and cloned
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertEquals("password", auth.getPassword());
        }
    
        // Test constructor with user info string without password
        @Test
        void testConstructorWithUserInfoNoPassword() {
            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN;user");
            assertEquals("DOMAIN", auth.getDomain());
            assertEquals("user", auth.getUsername());
            assertNotNull(auth.getPassword()); // Should fall back to default
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

                        // plain text
                        final String password = auth.getPassword();
                        lmHash = new byte[0];
                        ntHash = new byte[(password.length() + 1) * 2];
                        writeString(password, ntHash, 0);
                    } else {
                        // plain text
                        final String password = auth.getPassword();
                        lmHash = new byte[(password.length() + 1) * 2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

                } else {
                    // plain text
                    this.password = new byte[(pwAuth.getPassword().length() + 1) * 2];
                    this.passwordLength = writeString(pwAuth.getPassword(), this.password, 0);
                }
            } else {
                // no password in tree connect
                this.passwordLength = 1;
            }
    
    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/main/java/jcifs/smb1/smb1/NtlmContext.java

                    //                  netbiosName = getNtlmsspListItem(token, 0x0001);
    
                    final Type3Message msg3 =
                            new Type3Message(msg2, auth.getPassword(), auth.getDomain(), auth.getUsername(), workstation, ntlmsspFlags);
                    token = msg3.toByteArray();
    
                    if (LogStream.level >= 4) {
                        log.println(msg3);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
Back to top