- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 182 for masked (0.09 sec)
-
src/test/java/jcifs/dcerpc/ndr/NdrSmallTest.java
// Test with a negative value, expecting it to be masked to a positive byte NdrSmall ndrSmall = new NdrSmall(-1); // -1 & 0xFF = 255 assertEquals(255, ndrSmall.value, "Negative value should be masked to its unsigned byte equivalent."); } @Test void testConstructor_overflowValue() { // Test with a value exceeding byte range, expecting it to be masked
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
} @Test @DisplayName("Should handle masked value round-trip correctly") void testMaskedValueRoundTrip() throws NdrException { // Given: Original value that gets masked int originalValue = 300; // Will be masked to 44 int maskedValue = originalValue & 0xFF; // 44 NdrShort ndrShort1 = new NdrShort(originalValue);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java
} /** * Validate that the constructor masks the supplied value to its * lowest 8 bits (NdrShort incorrectly masks to 8 bits even though it's a short). */ @ParameterizedTest @ValueSource(ints = { 0, 1, 255, -1, 256, 65535 }) void constructorMasksValue(int input) { NdrShort ns = new NdrShort(input); // NdrShort masks to 0xFF (8 bits) in its constructor int expected = input & 0xFF;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java
trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", searchAttributes, 10, 1024); // Verify attributes are masked with 0x37 int expectedAttributes = searchAttributes & 0x37; // Write parameters to verify the masked value is used byte[] buffer = new byte[100]; int written = trans2FindFirst2.writeParametersWireFormat(buffer, 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrSmall.java
/** * The small integer value (0-255) */ public int value; /** * Constructs an NdrSmall with the specified value * @param value the small integer value (will be masked to 0-255 range) */ public NdrSmall(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/audit/SecurityAuditLogger.java
// Mask sensitive keys if (key.contains("password") || key.contains("secret") || key.contains("token") || key.contains("credential")) { masked.put(entry.getKey(), "****"); } else if (value instanceof String) { masked.put(entry.getKey(), maskSensitiveData((String) value)); } else { masked.put(entry.getKey(), value); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 26.6K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/ndr/NdrSmall.java
/** * The small integer value (0-255) */ public int value; /** * Constructs an NdrSmall with the specified value * @param value the small integer value (will be masked to 0-255 range) */ public NdrSmall(final int value) { this.value = value & 0xFF; } @Override public void encode(final NdrBuffer dst) throws NdrException {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 1.7K bytes - Viewed (0) -
src/main/java/jcifs/util/Strings.java
} } return len; } /** * Masks sensitive values in a string for security purposes. * * @param value the string potentially containing sensitive information * @return the string with sensitive parts masked, or the original string if masking is disabled */ public static String maskSecretValue(final String value) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java
assertEquals(expectedType, info.getType()); } @Test @DisplayName("Test getType with hidden flag") void testGetTypeWithHiddenFlag() { // Hidden flag (0x80000000) should be masked out int hiddenPrinterType = 0x80000001; // Hidden printer SmbShareInfo info = new SmbShareInfo(TEST_NET_NAME, hiddenPrinterType, TEST_REMARK); assertEquals(SmbConstants.TYPE_PRINTER, info.getType());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
/** * Tests to see if the file this SmbResource represents is marked as * hidden. This method will also return true for shares with names that * end with '$' such as <code>IPC$</code> or <code>C$</code>. * * @return <code>true</code> if the <code>SmbResource</code> is marked as being hidden * @throws CIFSException if an error occurs accessing the resource */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1)