Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for masking (0.15 sec)

  1. src/main/java/jcifs/audit/SecurityAuditLogger.java

        /**
         * Enable or disable sensitive data masking
         *
         * @param enable true to enable masking
         */
        public void setSensitiveDataMaskingEnabled(boolean enable) {
            this.maskSensitiveData = enable;
            log.info("Sensitive data masking {}", enable ? "enabled" : "disabled");
        }
    
        /**
         * Enable or disable high performance mode for sensitive data masking
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    /**
     * Unit tests for {@link NdrShort}.  The tests cover construction,
     * encoding and decoding logic, masking behaviour, alignment handling and
     * interaction with {@link NdrBuffer}.  All public behaviour is exercised.
     */
    @ExtendWith(MockitoExtension.class)
    class NdrShortTest {
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/audit/SecurityAuditLoggerTest.java

            assertEquals(Long.valueOf(2), stats.get(EventType.AUTHENTICATION_SUCCESS), "Should have 2 authentication success events");
        }
    
        @Test
        @DisplayName("Test sensitive data masking")
        void testSensitiveDataMasking() {
            logger.setSensitiveDataMaskingEnabled(true);
    
            Map<String, Object> context = new HashMap<>();
            context.put("password", "secretpassword123");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

                when(mockBuffer.dec_ndr_short()).thenReturn(negativeValue);
    
                // When: Decoding the value
                ndrShort.decode(mockBuffer);
    
                // Then: Should set the negative value directly (no masking on decode)
                verify(mockBuffer).dec_ndr_short();
                assertEquals(negativeValue, ndrShort.value);
            }
    
            @Test
            @DisplayName("Should decode large value correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/Strings.java

         * 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) {
            if (MASK_SECRET_VALUE && value != null) {
                return value.replaceFirst(SECRET_PATTERN, SECRET_MASK_REPLACE);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2Test.java

            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\", "*.*", 0x16, 15, 4096);
    
            assertEquals("\\", trans2FindFirst2.getPath());
        }
    
        @ParameterizedTest
        @DisplayName("Test search attributes masking")
        @ValueSource(ints = { 0x00, 0x16, 0x37, 0xFF })
        void testSearchAttributesMasking(int searchAttributes) {
            trans2FindFirst2 = new Trans2FindFirst2(mockConfig, "\\test", "*.*", searchAttributes, 10, 1024);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            String str = info.toString();
            assertTrue(str.contains(specialName));
            assertTrue(str.contains(specialRemark));
        }
    
        @Test
        @DisplayName("Test type masking with 0xFFFF")
        void testTypeMasking() {
            // Test that only lower 16 bits are considered for type determination
            int typeWithUpperBits = 0xFFFF0001; // Should be treated as type 1 (printer)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/StringsTest.java

                assertTrue(exception.getCause() instanceof UnsupportedEncodingException, "Cause should be UnsupportedEncodingException");
            }
        }
    
        @Nested
        @DisplayName("Secret Masking Tests")
        class SecretMaskingTests {
    
            @ParameterizedTest
            @DisplayName("maskSecretValue should mask SMB URLs containing credentials")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/Hashing.java

       * specific length.
       *
       * <p>For example, if you need 1024-bit hash codes, you could join two {@link Hashing#sha512} hash
       * functions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}.
       *
       * @since 19.0
       */
      public static HashFunction concatenating(
          HashFunction first, HashFunction second, HashFunction... rest) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:06:57 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  10. docs/en/docs/project-generation.md

    # Full Stack FastAPI Template { #full-stack-fastapi-template }
    
    Templates, while typically come with a specific setup, are designed to be flexible and customizable. This allows you to modify and adapt them to your project's requirements, making them an excellent starting point. 🏁
    
    You can use this template to get started, as it includes a lot of the initial set up, security, database and some API endpoints already done for you.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top