Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for withDefaultCredentials (0.2 sec)

  1. src/main/java/jcifs/context/CIFSContextWrapper.java

        public CIFSContext withCredentials ( Credentials creds ) {
            return wrap(this.delegate.withCredentials(creds));
        }
    
    
        @Override
        public CIFSContext withDefaultCredentials () {
            return wrap(this.delegate.withDefaultCredentials());
        }
    
    
        @Override
        public CIFSContext withAnonymousCredentials () {
            return wrap(this.delegate.withAnonymousCredentials());
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/AbstractCIFSContext.java

            return withCredentials(new NtlmPasswordAuthenticator());
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withDefaultCredentials()
         */
        @Override
        public CIFSContext withDefaultCredentials () {
            return withCredentials(getDefaultCredentials());
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withGuestCrendentials()
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 3.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/CIFSContext.java

     * 
     * Usually you will want to create one context per client configuration and then
     * multiple sub-contexts using different credentials (if necessary).
     * 
     * {@link #withDefaultCredentials()}, {@link #withAnonymousCredentials()}, {@link #withCredentials(Credentials)}
     * allow to create such sub-contexts.
     * 
     * 
     * Implementors of this interface should extend {@link jcifs.context.BaseContext} or
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/ContextConfigTest.java

            assertEquals("my-default-user-id", pa.getUsername());
            assertEquals("my-default-password", pa.getPassword());
    
            assertTrue(auth.withAnonymousCredentials().withDefaultCredentials().hasDefaultCredentials());
    
        }
    
    
    
        @Test
        public void testPasswordAt() throws MalformedURLException, CIFSException {
            Config.registerSmbURLHandler();
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/http/NtlmHttpFilter.java

                                + "  Skipping DC interrogation.");
                }
                else {
                    try ( SmbSessionInternal ssn = trans.getSmbSession(tf.withDefaultCredentials()).unwrap(SmbSessionInternal.class) ) {
                        ssn.treeConnectLogon();
                    }
                }
                return new NtlmChallenge(trans.getServerEncryptionKey(), dc);
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

                            /*
                             * preauthentication
                             */
                            try ( SmbSessionImpl smbSession = trans.getSmbSession(getContext().withDefaultCredentials());
                                  SmbTreeImpl t = smbSession.getSmbTree(getContext().getConfig().getLogonShare(), null) ) {
                                t.treeConnect(null, null);
                            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Nov 14 17:41:04 UTC 2021
    - 49K bytes
    - Viewed (0)
Back to top