Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 357 for masking (0.17 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. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

        assertEquals(3, hashCodes.size());
      }
    
      public void testToString() {
        assertEquals("Hashing.sipHash24(" + K0 + ", " + K1 + ")", SIP_WITH_KEY.toString());
        assertEquals("Hashing.sipHash24(" + K0 + ", " + K1 + ")", SIP_WITHOUT_KEY.toString());
        assertEquals("Hashing.sipHash24(20, 13)", Hashing.sipHash24(20, 13).toString());
      }
    
      private static void assertSip(String input, long expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  6. 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)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketWriter.kt

      val random: Random,
      private val perMessageDeflate: Boolean,
      private val noContextTakeover: Boolean,
      private val minimumDeflateSize: Long,
    ) : Closeable {
      /** This holds outbound data for compression and masking. */
      private val messageBuffer = Buffer()
    
      /** The [Buffer] of [sink]. Write to this and then flush/emit [sink]. */
      private val sinkBuffer: Buffer = sink.buffer
      private var writerClosed = false
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6K bytes
    - Viewed (0)
  8. 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)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketReader.kt

          throw ProtocolException("Control frame must be less than ${PAYLOAD_BYTE_MAX}B.")
        }
    
        if (isMasked) {
          // Read the masking key as bytes so that they can be used directly for unmasking.
          source.readFully(maskKey!!)
        }
      }
    
      @Throws(IOException::class)
      private fun readControlFrame() {
        if (frameLength > 0L) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 22:04:11 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. 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)
Back to top