Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for createContext (0.5 sec)

  1. src/test/java/jcifs/smb/SmbFileIntegrationTest.java

            // Use separate contexts for different operations
            CIFSContext createContext = createFreshContext();
            String sourceFileName = "source_" + timestamp + ".txt";
            String targetFileName = "target_" + timestamp + ".txt";
    
            SmbFile sourceFile = new SmbFile(baseUrl + "shared/" + sourceFileName, createContext);
    
            // Create source file with content
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 56K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.CredentialsInternal#createContext(jcifs.CIFSContext, java.lang.String, java.lang.String, byte[],
         *      boolean)
         */
        @Override
        public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning)
                throws SmbException {
            checkNotClosed();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/Kerb5Context.java

                clientCreds = manager.createCredential(this.clientName, userLifetime, mechOid, GSSCredential.INITIATE_ONLY);
            } else {
                this.clientName = null;
            }
    
            this.gssContext = manager.createContext(this.serviceName, mechOid, clientCreds, contextLifetime);
    
            this.gssContext.requestAnonymity(false);
            this.gssContext.requestSequenceDet(false);
            this.gssContext.requestConf(false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  4. src/test/java/jcifs/smb/Kerb5ContextTest.java

            lenient().when(gssManager.createName(anyString(), any(), any())).thenReturn(serviceName);
            lenient().when(gssManager.createName(anyString(), any())).thenReturn(serviceName);
            lenient().when(gssManager.createContext(any(), any(), any(), anyInt())).thenReturn(gssContext);
    
            // Create Kerb5Context with mocked dependencies
            ctx = new Kerb5Context("host.example", "cifs", null, 0, 0, null);
        }
    
        @AfterEach
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertThrows(IllegalStateException.class, () -> {
                // This would normally be called during authentication
                auth.createContext(null, null, "host", null, false);
            });
        }
    
        /**
         * Test TTL with different constructor types
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
Back to top