Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 293 for guid (0.04 sec)

  1. src/test/java/jcifs/internal/smb1/com/SmbComNegotiateResponseTest.java

            int byteCountValue = 16 + 10; // guid + token
            setByteCount(response, byteCountValue);
            byte[] buffer = new byte[byteCountValue];
            byte[] guid = new byte[16];
            for (int i = 0; i < 16; i++) {
                guid[i] = (byte) i;
            }
            System.arraycopy(guid, 0, buffer, 0, 16);
            byte[] token = new byte[10];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

            request.encode(buffer, 0);
    
            // Verify zero GUID
            byte[] extractedGuid = new byte[16];
            System.arraycopy(buffer, 4, extractedGuid, 0, 16);
            assertArrayEquals(zeroGuid, extractedGuid);
        }
    
        @Test
        @DisplayName("Test encode with all 0xFF GUID")
        void testEncodeWithMaxGuid() {
            byte[] maxGuid = new byte[16];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. docs/smb3-features/02-persistent-handles-design.md

        public void testHandleGuidGeneration() {
            HandleGuid guid1 = new HandleGuid();
            HandleGuid guid2 = new HandleGuid();
            
            assertNotEquals(guid1, guid2);
            assertEquals(16, guid1.toBytes().length);
            
            // Test round-trip
            HandleGuid guid3 = new HandleGuid(guid1.toBytes());
            assertEquals(guid1, guid3);
        }
        
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/persistent/PersistentHandleManagerTest.java

            }
        }
    
        @Test
        public void testRequestDurableHandle() {
            HandleGuid guid = manager.requestDurableHandle("/test/file.txt", HandleType.DURABLE_V2, 120000, null);
    
            assertNotNull(guid);
            assertEquals(1, manager.getHandleCount());
    
            HandleInfo info = manager.getHandleByGuid(guid);
            assertNotNull(info);
            assertEquals("/test/file.txt", info.getPath());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/persistent/HandleGuidTest.java

            UUID uuid = UUID.randomUUID();
            HandleGuid guid1 = new HandleGuid(uuid);
            HandleGuid guid2 = new HandleGuid(uuid);
            HandleGuid guid3 = new HandleGuid();
    
            assertEquals(guid1, guid2);
            assertEquals(guid1.hashCode(), guid2.hashCode());
            assertNotEquals(guid1, guid3);
            assertNotEquals(guid1.hashCode(), guid3.hashCode());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/persistent/HandleGuid.java

        /**
         * The underlying UUID representing this handle GUID
         */
        private final UUID guid;
    
        /**
         * Create a new random handle GUID
         */
        public HandleGuid() {
            this.guid = UUID.randomUUID();
        }
    
        /**
         * Create a handle GUID from existing bytes
         * @param bytes the 16-byte GUID data in little-endian format (SMB wire format)
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

            }
        }
    
        /**
         * Get handle information by GUID
         * @param guid the handle GUID
         * @return the handle info or null if not found
         */
        public HandleInfo getHandleByGuid(HandleGuid guid) {
            lock.readLock().lock();
            try {
                return guidToHandle.get(guid);
            } finally {
                lock.readLock().unlock();
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertNull(serverData.encryptionKey);
    
            // Test guid (typically 16 bytes)
            byte[] guid = new byte[16];
            Arrays.fill(guid, (byte) 0xAB);
            serverData.guid = guid;
            assertNotNull(serverData.guid);
            assertArrayEquals(guid, serverData.guid);
            assertEquals(16, serverData.guid.length);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            assertNotNull(response.getServerGuid(), "Server GUID should not be null");
            assertEquals(16, response.getServerGuid().length, "Server GUID should be 16 bytes");
            assertArrayEquals(new byte[16], response.getServerGuid(), "Initial server GUID should be all zeros");
            assertEquals(0, response.getSecurityMode(), "Initial security mode should be 0");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

        }
    
        /**
         * Get the durable handle GUID from the response
         * @return the durable handle GUID or null if no durable handle was granted
         */
        public jcifs.internal.smb2.persistent.HandleGuid getDurableHandleGuid() {
            // For now, return null as the GUID is typically provided in the request context
            // and the response doesn't necessarily contain the GUID in a standard format
            return null;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top