Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for getLeaseKey (0.14 sec)

  1. src/test/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequestTest.java

            assertNotNull(defaultContext.getLeaseKey());
            assertEquals(0, defaultContext.getLeaseState());
            assertEquals(0, defaultContext.getLeaseFlags());
        }
    
        @Test
        @DisplayName("Should initialize with provided values")
        void testParameterizedConstructor() {
            assertEquals(testKey, leaseContext.getLeaseKey());
            assertEquals(testState, leaseContext.getLeaseState());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/persistent/HandleReconnector.java

            // request.addCreateContext(new DurableHandleReconnect(info.getFileId()));
    
            // Add lease context if needed
            // if (info.getLeaseKey() != null) {
            //     request.addLeaseV1Context(info.getLeaseKey(), Smb2LeaseState.SMB2_LEASE_NONE);
            // }
    
            // return request;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key from the V2 server response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the lease state granted by the server for V2
         * @return the granted lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java

        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key from the server response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the lease state granted by the server
         * @return the granted lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            this(context.getConfig(), leaseKey, leaseState);
        }
    
        /**
         * Gets the lease key for this acknowledgment
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the lease state being acknowledged
         * @return the lease state
         */
        public int getLeaseState() {
            return leaseState;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakNotification.java

        public Smb2LeaseBreakNotification(Configuration config) {
            super(config);
        }
    
        /**
         * Gets the lease key that is being broken
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the current lease state before the break
         * @return the current lease state
         */
        public int getCurrentLeaseState() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextRequest.java

        @Override
        public byte[] getName() {
            return CONTEXT_NAME_BYTES;
        }
    
        /**
         * Gets the lease key for this lease request
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Sets the lease key for this lease request
         * @param leaseKey the lease key to set
         */
        public void setLeaseKey(Smb2LeaseKey leaseKey) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java

        public Smb2LeaseBreakResponse(Configuration config) {
            super(config);
        }
    
        /**
         * Gets the lease key from the break response
         * @return the lease key
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Gets the granted lease state from the break response
         * @return the lease state
         */
        public int getLeaseState() {
            return leaseState;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/persistent/HandleInfoTest.java

            assertArrayEquals(testFileId, info.getFileId());
            assertEquals(HandleType.DURABLE_V2, info.getType());
            assertEquals(120000, info.getTimeout());
            assertEquals(testLeaseKey, info.getLeaseKey());
            assertFalse(info.isReconnecting());
            assertNull(info.getFile());
        }
    
        @Test
        public void testHandleInfoExpiration() {
            // Test durable handle expiration
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java

        public long getLastAccessTime() {
            return lastAccessTime;
        }
    
        /**
         * Get the associated lease key
         * @return the lease key (can be null)
         */
        public Smb2LeaseKey getLeaseKey() {
            return leaseKey;
        }
    
        /**
         * Check if this handle is currently reconnecting
         * @return true if reconnecting
         */
        public boolean isReconnecting() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top