Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,164 for contexto (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            DirectoryLeaseContext context = new DirectoryLeaseContext(key, leaseState, scope);
    
            assertEquals(key, context.getLeaseKey());
            assertEquals(leaseState, context.getLeaseState());
            assertEquals(scope, context.getCacheScope());
            assertEquals(30000L, context.getMaxCacheAge());
            assertTrue(context.isNotificationEnabled());
            assertEquals(0, context.getNotificationFilter());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    testEncryptionKey, testDecryptionKey);
    
            // When/Then - Multiple closes should be safe
            assertDoesNotThrow(() -> {
                context.close();
                context.close();
                context.close();
            });
    
            assertTrue(context.isClosed());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Then
            NegotiateContextRequest[] contexts = request.getNegotiateContexts();
            assertNotNull(contexts);
            assertEquals(2, contexts.length);
    
            // Verify preauth context
            assertTrue(contexts[0] instanceof PreauthIntegrityNegotiateContext);
            assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, contexts[0].getContextType());
    
            // Verify encryption context
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

        }
    
        /**
         * Set the create contexts for this request
         * @param contexts the create contexts to set
         */
        public void setCreateContexts(CreateContextRequest[] contexts) {
            this.createContexts = contexts;
        }
    
        /**
         * Add a create context to this request
         * @param context the create context to add
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/PreauthIntegrityService.java

                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
            try {
                byte[] newHash = calculateHash(context.getCurrentHash(), messageData, context.getHashAlgorithm());
                context.updateHash(newHash);
    
                log.debug("Updated preauth hash for session {} with {} bytes of data", sessionId, messageData.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/CIFSContext.java

     */
    package jcifs;
    
    import java.net.URLStreamHandler;
    
    /**
     * Encapsulation of client context
     *
     *
     * A context holds the client configuration, shared services as well as the active credentials.
     *
     * Usually you will want to create one context per client configuration and then
     * multiple sub-contexts using different credentials (if necessary).
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            // Context with share and at root
            SmbResourceLocatorImpl base2 = locator("smb://server/share/");
            SmbResourceLocator context2 = mock(SmbResourceLocator.class);
            when(context2.getShare()).thenReturn("share");
            when(context2.getDfsReferral()).thenReturn(null);
            when(context2.getUNCPath()).thenReturn("\\");
            when(context2.getURLPath()).thenReturn("/share/");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        @Test
        @DisplayName("Should return negotiate contexts")
        void testGetNegotiateContexts() throws Exception {
            // Given
            NegotiateContextResponse[] contexts = new NegotiateContextResponse[2];
            contexts[0] = new EncryptionNegotiateContext();
            contexts[1] = new PreauthIntegrityNegotiateContext();
            setPrivateField(response, "negotiateContexts", contexts);
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/create/Smb2CreateResponse.java

                this.createContexts = contexts.toArray(new CreateContextResponse[0]);
            }
    
            if (log.isDebugEnabled()) {
                log.debug("Opened " + this.fileName + ": " + Hexdump.toHexString(this.fileId));
            }
    
            return bufferIndex - start;
        }
    
        /**
         * Factory method to create appropriate context response based on context name
         * @param nameBytes context name bytes
    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