- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 54 for Purger (0.62 sec)
-
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
} @Test @DisplayName("Should generate multiple unique nonces without collision") void testGenerateMultipleNoncesNoCollision() { // Given int count = 10000; // Test with larger number for collision detection Set<String> nonceSet = new HashSet<>(); // When for (int i = 0; i < count; i++) { byte[] nonce = encryptionContext.generateNonce();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/util/TemporaryFileInputStreamTest.java
assertEquals(-1, stream.read()); // EOF immediately } } public void test_largeFile() throws Exception { // Create a temporary file with larger data File tempFile = File.createTempFile("test-large-", ".tmp"); byte[] data = new byte[1024]; for (int i = 0; i < data.length; i++) { data[i] = (byte) (i % 256); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 7.2K bytes - Viewed (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
byte[] encrypted = storage.encryptCredentials(plaintext); assertNotNull(encrypted, "Encrypted long password should not be null"); assertTrue(encrypted.length > plaintext.length, "Encrypted data should be larger due to IV and auth tag"); char[] decrypted = storage.decryptCredentials(encrypted); assertArrayEquals(plaintext, decrypted, "Decrypted long password should match original"); // Clean upRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 12.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
@ValueSource(ints = { 1, 10, 100, 500, 1024 }) void testReadDataWireFormatWithVariousSizes(int dataSize) throws SMBProtocolDecodingException { if (dataSize > outputBuffer.length) { return; // Skip sizes larger than buffer } byte[] sourceData = new byte[dataSize]; for (int i = 0; i < dataSize; i++) { sourceData[i] = (byte) (i % 256); }Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/ReferralTest.java
public void testUnicodeStringHandling() { ByteBuffer bb = ByteBuffer.wrap(testBuffer).order(ByteOrder.LITTLE_ENDIAN); bb.putShort((short) 3); // version bb.putShort((short) 100); // size (larger to accommodate unicode strings) bb.putShort((short) 1); // serverType bb.putShort((short) 0); // rflags bb.putShort((short) 5); // proximity bb.putShort((short) 300); // ttl
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 22K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseInputValidationTest.java
// Negotiate context offset (0 for non-3.1.1) SMBUtil.writeInt4(0, buffer, 60); return buffer; } /** * Creates a larger buffer suitable for testing negotiate contexts. */ private byte[] createLargeBufferForContexts() { byte[] buffer = new byte[1024]; // Large enough for contexts // Copy basic structureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/io/Smb2ReadResponseTest.java
Smb2ReadResponse smallBufferResponse = new Smb2ReadResponse(mockConfig, smallOutputBuffer, 0); byte[] buffer = new byte[256]; int bodyStart = 0; int dataLength = 20; // Larger than output buffer int dataOffsetFromHeader = 80; // Write valid structure SMBUtil.writeInt2(17, buffer, bodyStart); buffer[bodyStart + 2] = (byte) dataOffsetFromHeader;
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 22.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java
byte[] remaining = new byte[2]; assertEquals(2, sis.read(remaining, 0, 2)); assertArrayEquals(new byte[] { 40, 50 }, remaining); } @Test @DisplayName("Skip handles amount larger than available") void skipHandlesLargerThanAvailable() throws IOException { // Create message with 3 bytes of data byte[] data = new byte[] { 1, 2, 3 };
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java
} /* * For this packet deconstruction technique to work for * other networking protocols the InputStream may need * to be passed to the readXxxWireFormat methods. This is * actually purer. However, in the case of smb we know the * wordCount and byteCount. And since every subclass of * ServerMessageBlock would have to perform the same read * operation on the input stream, we might as will pull thatRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.7K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java
} @Test @DisplayName("Should handle large session key") void testDeriveKeys_LargeSessionKey() { // Given byte[] largeSessionKey = new byte[256]; // Larger than typical 16-byte key new SecureRandom().nextBytes(largeSessionKey); int dialect = Smb2Constants.SMB2_DIALECT_0311; // WhenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0)