- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 88 for array (0.03 sec)
-
src/main/java/jcifs/util/InputValidator.java
} /** * Validates array is not null and has expected length * * @param array the array to validate * @param expectedLength the expected length * @param fieldName the field name for error reporting * @throws IllegalArgumentException if array is invalid */ public static void validateArrayLength(byte[] array, int expectedLength, String fieldName) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertEquals(testPassword, auth.getPassword()); // Check that char array method works char[] passwordArray = auth.getPasswordAsCharArray(); assertNotNull(passwordArray); assertArrayEquals(testPassword.toCharArray(), passwordArray); // Verify that returned array is a copy Arrays.fill(passwordArray, 'X'); assertEquals(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) -
src/main/java/jcifs/smb1/util/DES.java
/// Squash bytes down to ints. /** * Converts bytes to integers for internal DES processing * @param inBytes the input byte array * @param inOff the offset into the input array * @param outInts the output integer array * @param outOff the offset into the output array * @param intLen the number of integers to convert */Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 22.7K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureKeyManager.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 21.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
} @Test @DisplayName("Test get password as char array") void testGetPasswordAsCharArray() { String testPassword = "securePassword456"; authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", testPassword); char[] password = authenticator.getPasswordAsCharArray(); assertNotNull(password, "Password char array should not be null");Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0) -
src/main/java/jcifs/util/SecureCredentialStorage.java
bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F)); } } return Arrays.copyOf(bytes, byteIndex); } /** * Convert byte array to char array (UTF-8) */ private char[] bytesToChars(byte[] bytes) { if (bytes == null) { return null; } // Decode UTF-8
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Check total memory allocation long totalSize = (long) size * (long) elementSize; long maxAllocation = 100 * 1024 * 1024; // 100MB max if (totalSize > maxAllocation) { failedValidations.incrementAndGet(); log.warn("Array allocation too large: {} bytes", totalSize);Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
guava/src/com/google/common/reflect/Types.java
} } /** Returns the {@code Class} object of arrays with {@code componentType}. */ static Class<?> getArrayClass(Class<?> componentType) { // TODO(user): This is not the most efficient way to handle generic // arrays, but is there another way to extract the array class in a // non-hacky way (i.e. using String value class names- "[L...")? return Array.newInstance(componentType, 0).getClass(); } /*Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Sep 03 14:03:14 UTC 2025 - 23.5K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
} @Test @DisplayName("Test array length validation") void testArrayLengthValidation() { byte[] array = new byte[16]; assertDoesNotThrow(() -> InputValidator.validateArrayLength(array, 16, "test")); assertThrows(IllegalArgumentException.class, () -> InputValidator.validateArrayLength(null, 16, "test"));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0)