- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 292 for 0x01 (0.02 sec)
-
src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java
new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }; Smb2LeaseKey key = new Smb2LeaseKey(originalBytes); byte[] retrievedKey = key.getKey(); // Modify the retrieved key retrievedKey[0] = (byte) 0xFF; // Original key should remain unchanged assertEquals(0x01, key.getKey()[0]); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java
* The constructor should only use the first 8/32 bytes. */ @Test void testAvSingleHostCustomDataMachineIdConstructor_LongerInputs() { byte[] customData = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A }; // Longer than 8 byte[] machineId = new byte[40]; // Longer than 32 for (int i = 0; i < 40; i++) { machineId[i] = (byte) i; }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 6.4K bytes - Viewed (0) -
src/test/java/jcifs/util/ByteEncodableTest.java
byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 }; ByteEncodable encodable = new ByteEncodable(data, 1, 3); // Verify size assertEquals(3, encodable.size(), "Size should be equal to the specified length"); } @Test void testEncodeBasic() { // Test basic encoding byte[] data = { 0x01, 0x02, 0x03, 0x04, 0x05 };
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.5K bytes - Viewed (0) -
src/test/java/jcifs/netbios/NodeStatusResponseTest.java
// Bit 2: active (1) // Bit 1: permanent (1) // MAC address byte[] testMac = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; System.arraycopy(testMac, 0, src, srcIndex + 19, 6); // Statistics byte[] stats = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; System.arraycopy(stats, 0, src, srcIndex + 25, 6); response.readRDataWireFormat(src, srcIndex);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java
void testSizeWithMultipleHashAlgosAndSalt() { int[] hashAlgos = { 0x01, 0x02, 0x03 }; byte[] salt = { 0x01, 0x02, 0x03, 0x04, 0x05 }; PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt); assertEquals(15, context.size()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 34K bytes - Viewed (0) -
src/test/java/jcifs/internal/SmbNegotiationTest.java
private SmbNegotiation negotiation; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testRequestBuffer = new byte[] { 0x01, 0x02, 0x03, 0x04 }; testResponseBuffer = new byte[] { 0x05, 0x06, 0x07, 0x08 }; negotiation = new SmbNegotiation(mockRequest, mockResponse, testRequestBuffer, testResponseBuffer); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/DcerpcConstantsTest.java
void testDcerpcFirstFrag() { assertEquals(0x01, DcerpcConstants.DCERPC_FIRST_FRAG, "DCERPC_FIRST_FRAG should be 0x01"); } @Test @DisplayName("DCERPC_LAST_FRAG should have correct value") void testDcerpcLastFrag() { assertEquals(0x02, DcerpcConstants.DCERPC_LAST_FRAG, "DCERPC_LAST_FRAG should be 0x02"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/SMB1SigningDigestTest.java
private byte[] testMacSigningKey; @BeforeEach void setUp() { MockitoAnnotations.openMocks(this); testMacSigningKey = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x10 }; } @Test @DisplayName("Test constructor with MAC signing key and bypass flag") void testConstructorWithBypass() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
byte[] wireData = new byte[] { 0x10, 0x00, // StructureSize (must be 16) 0x01, // ShareType (DISK) 0x00, // Reserved 0x01, 0x00, 0x00, 0x00, // ShareFlags 0x08, 0x00, 0x00, 0x00, // Capabilities (byte) 0xFF, 0x01, 0x1F, 0x00 // MaximalAccess }; // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java
// Owner SID with 3 sub-authorities (S-1-5-21-X-Y-Z) testBuffer[20] = 0x01; // revision testBuffer[21] = 0x03; // sub-authority count testBuffer[22] = 0x00; // identifier authority testBuffer[23] = 0x00; testBuffer[24] = 0x00; testBuffer[25] = 0x00; testBuffer[26] = 0x00; testBuffer[27] = 0x05; SMBUtil.writeInt4(21, testBuffer, 28); // sub-authority 1
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 18.6K bytes - Viewed (0)