- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 362 for getByte (0.04 sec)
-
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
byte[] buffer = new byte[300]; contexts[0] = new TestCreateContextResponse("CONTEXT1".getBytes(StandardCharsets.UTF_8)); contexts[1] = new TestCreateContextResponse("CONTEXT2".getBytes(StandardCharsets.UTF_8)); contexts[2] = new TestCreateContextResponse("CONTEXT3".getBytes(StandardCharsets.UTF_8)); // Decode each context for (int i = 0; i < contexts.length; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/util/HMACT64Test.java
@ExtendWith(MockitoExtension.class) class HMACT64Test { private static final byte[] TEST_KEY = "testkey".getBytes(); private static final byte[] LONG_TEST_KEY = "thisisalongtestkeythatislongerthan64bytesandshouldbetruncated".getBytes(); private static final byte[] SHORT_TEST_KEY = "short".getBytes(); private static final byte[] TEST_DATA = "testdata".getBytes(); private static final byte[] EMPTY_DATA = new byte[0]; @Mock
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
// Simulate message exchange preauthService.updatePreauthHash(sessionId, "Message1".getBytes()); preauthService.updatePreauthHash(sessionId, "Message2".getBytes()); byte[] expectedHash = preauthService.getCurrentPreauthHash(sessionId); // Validation should pass with correct hash
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
contexts[0] = new TestCreateContextRequest("CONTEXT1".getBytes(StandardCharsets.UTF_8)); contexts[1] = new TestCreateContextRequest("CONTEXT2".getBytes(StandardCharsets.UTF_8)); contexts[2] = new TestCreateContextRequest("CONTEXT3".getBytes(StandardCharsets.UTF_8)); // Encode all contexts byte[] buffer = new byte[512];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HMACT64Test.java
import org.junit.jupiter.api.Test; class HMACT64Test { private static final byte[] TEST_KEY = "testkey".getBytes(); private static final byte[] LONG_TEST_KEY = new byte[80]; // Longer than 64 bytes private static final byte[] SHORT_TEST_KEY = "short".getBytes(); private static final byte[] TEST_DATA = "testdata".getBytes(); private static final byte[] EMPTY_DATA = new byte[0]; static {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
void testConstructor_NonWorkgroupType_ThrowsException() throws Exception { // Given: A non-workgroup type with a host when(locator.getType()).thenReturn(SmbConstants.TYPE_SERVER); when(locator.getURL()).thenReturn(createSmbURL("smb://server/")); // When & Then: Constructor should throw SmbException
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java
setConverter(response, 0); // Set number of entries setNumEntries(response, 1); // Write share name (13 bytes, null padded) byte[] nameBytes = shareName.getBytes(StandardCharsets.US_ASCII); System.arraycopy(nameBytes, 0, buffer, bufferIndex, Math.min(nameBytes.length, 13)); bufferIndex += 14; // Write type (2 bytes)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
new SecretKeySpec("secret key".getBytes(UTF_8), "HmacMD5"); private static final SecretKey SHA1_KEY = new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA1"); private static final SecretKey SHA256_KEY = new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA256"); private static final SecretKey SHA512_KEY = new SecretKeySpec("secret key".getBytes(UTF_8), "HmacSHA512");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Dec 27 16:19:35 UTC 2024 - 13.8K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/av/AvPairs.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/FacetResponseTest.java
String fullFieldName = Constants.FACET_FIELD_PREFIX + encodedFieldName; assertTrue(fullFieldName.startsWith("field:")); assertTrue(fullFieldName.contains(encodedFieldName)); String queryName = "title:test"; String encodedQueryName = BaseEncoding.base64().encode(queryName.getBytes(StandardCharsets.UTF_8));
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 6.6K bytes - Viewed (0)