Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for toCharArray (0.36 sec)

  1. src/test/java/jcifs/util/SecureCredentialStorageTest.java

        private SecureCredentialStorage storage;
        private char[] masterPassword;
    
        @BeforeEach
        public void setUp() throws Exception {
            masterPassword = "MasterPassword123!@#".toCharArray();
            storage = new SecureCredentialStorage(masterPassword.clone());
        }
    
        @AfterEach
        public void tearDown() throws Exception {
            if (storage != null && !storage.isDestroyed()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertFalse(userAuth.isGuest());
            assertFalse(userAuth.isAnonymous());
        }
    
        /**
         * Test password in equals method
         */
        @Test
        public void testEqualsWithSecurePassword() {
            char[] password1 = "TestPass123!".toCharArray();
            char[] password2 = "TestPass123!".toCharArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java

            char[] basePassword = "supersecretpassword123456789".toCharArray();
            char[] diffAtStart = "Xupersecretpassword123456789".toCharArray();
            char[] diffAtMiddle = "supersecretpXssword123456789".toCharArray();
            char[] diffAtEnd = "supersecretpassword12345678X".toCharArray();
    
            // Create authenticators
    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/smb/NtlmPasswordAuthenticatorSecurityTest.java

            Object passwordValue = passwordField.get(authenticator);
    
            assertTrue(passwordValue instanceof char[], "Password should be stored as char[]");
            assertArrayEquals("password123".toCharArray(), (char[]) passwordValue, "Password content should match");
        }
    
        @Test
        @DisplayName("Test secure password wipe")
        void testSecureWipePassword() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            this.domain = dom != null ? dom : defDomain != null ? defDomain : "";
            this.username = user != null ? user : defUser != null ? defUser : "";
            this.password = pass != null ? pass.toCharArray() : defPassword != null ? defPassword.toCharArray() : new char[0];
    
            if (type == null) {
                this.type = guessAuthenticationType();
            } else {
                this.type = type;
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            if (!Character.isDigit(host.charAt(0))) {
                return doNameQuery(name, svr);
            }
    
            int IP = 0x00;
            int hitDots = 0;
            final char[] data = host.toCharArray();
    
            for (int i = 0; i < data.length; i++) {
                char c = data[i];
                if (c < 48 || c > 57) {
                    return doNameQuery(name, svr);
                }
                int b = 0x00;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbFile.java

                    }
                    request.reset();
                }
            }
        }
    
        static String queryLookup(final String query, final String param) {
            final char in[] = query.toCharArray();
            int i, ch, st, eq;
    
            st = eq = 0;
            for (i = 0; i < in.length; i++) {
                ch = in[i];
                if (ch == '&') {
                    if (eq > st) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
Back to top