Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 582 for masking (0.35 seconds)

  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
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 26.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/curl/io/ContentOutputStream.java

            return super.getFile();
        }
    
        /**
         * Closes the stream and deletes the temporary file if it was not retrieved.
         * If an error occurs during file deletion, it is logged but not thrown to avoid
         * masking exceptions from the main operation.
         *
         * @throws IOException if an I/O error occurs during stream closure
         */
        @Override
        public void close() throws IOException {
            try {
    Created: Thu Apr 02 15:34:12 GMT 2026
    - Last Modified: Thu Nov 20 13:34:13 GMT 2025
    - 3.9K bytes
    - Click Count (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");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  4. 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 {
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.1K bytes
    - Click Count (0)
  5. 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")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      }
    
      public void testToString() {
        assertThat(SIP_WITH_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(SIP_WITHOUT_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(sipHash24(20, 13).toString()).isEqualTo("Hashing.sipHash24(20, 13)");
      }
    
      private static void assertSip(String input, long expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/hash/SipHashFunctionTest.java

      }
    
      public void testToString() {
        assertThat(SIP_WITH_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(SIP_WITHOUT_KEY.toString()).isEqualTo("Hashing.sipHash24(" + K0 + ", " + K1 + ")");
        assertThat(sipHash24(20, 13).toString()).isEqualTo("Hashing.sipHash24(20, 13)");
      }
    
      private static void assertSip(String input, long expected) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 6.8K bytes
    - Click Count (0)
  8. 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);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  9. 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
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 6K bytes
    - Click Count (0)
  10. 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);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.8K bytes
    - Click Count (0)
Back to Top