- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 335 for getByte (1.79 sec)
-
src/test/java/jcifs/pac/PacMacTest.java
import javax.security.auth.kerberos.KerberosPrincipal; import org.junit.jupiter.api.Test; /** * Tests for the PacMac class. */ class PacMacTest { private static final byte[] TEST_DATA = "test data".getBytes(); private static final KerberosPrincipal TEST_PRINCIPAL = new KerberosPrincipal("test@REALM"); /** * Test method for * {@link jcifs.pac.PacMac#calculateMacArcfourHMACMD5(int, java.security.Key, byte[])}.Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
testEncryptionKey, testEncryptionKey); // Use same key for test byte[] plaintext = "Hello, SMB3 Encryption!".getBytes(); long sessionId = 0x123456789ABCDEF0L; // When - Encrypt byte[] encrypted = context.encryptMessage(plaintext, sessionId); // Then - Verify encrypted message structureRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
/** * Returned by {@link #getType()} if the resource this {@code SmbFile} * represents is a server. */ public static final int TYPE_SERVER = 0x04; /** * Returned by {@link #getType()} if the resource this {@code SmbFile} * represents is a share. */ public static final int TYPE_SHARE = 0x08; /** * Returned by {@link #getType()} if the resource this {@code SmbFile}Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/TextTransformer.java
try { resultData.setData(content.getBytes(charsetName)); } catch (final UnsupportedEncodingException e) { if (logger.isInfoEnabled()) { logger.info("Invalid charsetName: " + charsetName + ". Changed to " + Constants.UTF_8, e); } charsetName = Constants.UTF_8; resultData.setData(content.getBytes(Constants.UTF_8_CHARSET)); }Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 6.5K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NetServerEnum2Test.java
// Verify subcommand assertEquals(SmbComTransaction.NET_SERVER_ENUM2 & 0xFF, (dst[0] & 0xFF) | ((dst[1] & 0xFF) << 8)); // Verify description byte[] descr = NetServerEnum2.DESCR[0].getBytes("ASCII"); byte[] writtenDescr = new byte[descr.length]; System.arraycopy(dst, 2, writtenDescr, 0, descr.length); assertArrayEquals(descr, writtenDescr); int currentIndex = 2 + descr.length;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.6K bytes - Viewed (0) -
src/main/java/jcifs/SmbConstants.java
* Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code> * represents is a server. */ int TYPE_SERVER = 0x04; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code> * represents is a share. */ int TYPE_SHARE = 0x08; /** * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 24 00:49:49 UTC 2025 - 12.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/form/FormScheme.java
parseTokenPage(tokenPattern, responseParams, entity); } else { String content; try { content = new String(InputStreamUtil.getBytes(entity.getContent()), Constants.UTF_8_CHARSET); } catch (final IOException e) { content = e.getMessage(); }
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 14.3K bytes - Viewed (1) -
src/test/java/jcifs/ntlmssp/NtlmMessageTest.java
} @Test void testReadSecurityBuffer() { // Test readSecurityBuffer byte[] data = new byte[20]; byte[] content = "Hello".getBytes(); // Simulate a security buffer structure: length (2 bytes), length (2 bytes), offset (4 bytes) // Length = 5, Offset = 8 ByteBuffer buffer = ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN);Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
byte[] buffer = "Test\0Other".getBytes(); assertEquals(4, testBlock.readStringLength(buffer, 0, 10)); } @Test @DisplayName("Test read string length without termination throws exception") void testReadStringLengthNoTermination() { byte[] buffer = "TestTest".getBytes(); assertThrows(RuntimeCIFSException.class, () -> {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0)