Search Options

Results per page
Sort
Preferred Languages
Advance

Results 391 - 400 of 816 for Helper (0.05 sec)

  1. src/test/java/org/codelibs/fess/ds/callback/IndexUpdateCallbackTest.java

            innerMap.put("inner", "value");
            nestedData.put("nested", innerMap);
            callback.store(params, nestedData);
    
            assertEquals(4L, callback.getDocumentSize());
        }
    
        // Helper method to create mock callbacks with preset values
        private IndexUpdateCallback createMockCallback(final long docSize, final long execTime) {
            return new IndexUpdateCallback() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/HMACT64Test.java

                    different = true;
                    break;
                }
            }
            assertEquals(true, different, "Different data should produce different HMAC values");
        }
    
        // Helper method to manually calculate HMACT64 for verification
        private byte[] calculateHMACT64Manually(byte[] key, byte[] data) throws NoSuchAlgorithmException {
            MessageDigest md5 = MessageDigest.getInstance("MD5");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/PreauthIntegrityTest.java

                });
            }
    
            startLatch.countDown();
            assertTrue(doneLatch.await(5, TimeUnit.SECONDS), "Threads did not complete");
            executor.shutdown();
        }
    
        // Helper methods
        private void setPrivateField(Object target, String fieldName, Object value) throws Exception {
            Field field = findField(target.getClass(), fieldName);
            field.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/ASN1Util.java

    import org.bouncycastle.asn1.ASN1TaggedObject;
    import org.bouncycastle.asn1.DLSequence;
    
    /**
     * Utility class for ASN.1 parsing and manipulation operations.
     *
     * This class provides helper methods for working with ASN.1
     * encoded data structures used in Kerberos PAC processing.
     */
    public final class ASN1Util {
    
        private ASN1Util() {
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java

            // Return just the base; caller is responsible for placing ctx at the correct absolute offset.
            // We will return a composite buffer from the test when building the full packet.
            // To keep this helper simple, return base and let the caller append/pad and inject ctx.
            return base;
        }
    
        /**
         * Build a full SMB2 packet combining header and provided body, optionally injecting context bytes.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/NtlmUtilTest.java

    import jcifs.Configuration;
    import jcifs.util.Encdec;
    
    @ExtendWith(MockitoExtension.class)
    class NtlmUtilTest {
    
        @Mock
        CIFSContext cifsContext;
    
        @Mock
        Configuration configuration;
    
        // Helper: decode hex string to bytes
        private static byte[] hex(String s) {
            String clean = s.replaceAll("[^0-9A-Fa-f]", "");
            int len = clean.length();
            byte[] out = new byte[len / 2];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbSessionImplTest.java

            // Transport wiring - used by most tests
            when(transport.acquire()).thenReturn(transport);
            when(transport.getContext()).thenReturn(cifsContext);
        }
    
        // Helper to set private fields for targeted edge cases
        private static void setField(Object target, String name, Object value) {
            try {
                Field f = target.getClass().getDeclaredField(name);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  8. cmd/net.go

    	for _, ip := range ipList {
    		apiEndpoints = append(apiEndpoints, getURLScheme(globalIsTLS)+"://"+net.JoinHostPort(ip, globalMinioPort))
    	}
    
    	return apiEndpoints
    }
    
    // isHostIP - helper for validating if the provided arg is an ip address.
    func isHostIP(ipAddress string) bool {
    	host, _, err := net.SplitHostPort(ipAddress)
    	if err != nil {
    		host = ipAddress
    	}
    	// Strip off IPv6 zone information.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 19 14:34:00 UTC 2024
    - 9.6K bytes
    - Viewed (1)
  9. src/main/java/org/codelibs/fess/helper/ViewHelper.java

     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
     * either express or implied. See the License for the specific language
     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.helper;
    
    import static org.codelibs.core.stream.StreamUtil.split;
    
    import java.io.BufferedInputStream;
    import java.io.File;
    import java.io.IOException;
    import java.io.InputStream;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 52.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            assertNotNull(filter);
        }
    
        // Test OPTIONS constant
        public void test_optionsConstant() {
            assertEquals("OPTIONS", CorsFilter.OPTIONS);
        }
    
        // Helper classes for testing
    
        private static class TestCorsHandlerFactory extends CorsHandlerFactory {
            private boolean getCalled = false;
            private String lastOrigin = null;
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 22.1K bytes
    - Viewed (0)
Back to top