Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for withAnonymousCredentials (0.29 sec)

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

        public CIFSContext withDefaultCredentials () {
            return wrap(this.delegate.withDefaultCredentials());
        }
    
    
        @Override
        public CIFSContext withAnonymousCredentials () {
            return wrap(this.delegate.withAnonymousCredentials());
        }
    
    
        @Override
        public CIFSContext withGuestCrendentials () {
            return wrap(this.delegate.withGuestCrendentials());
        }
    
    
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/ContextConfigTest.java

            assertThat("anonymous", ntlmGuestCreds.isAnonymous(), CoreMatchers.is(false));
            assertThat("guest", ntlmGuestCreds.isGuest(), CoreMatchers.is(true));
    
            Credentials anonCreds = this.context.withAnonymousCredentials().getCredentials();
            assertThat(anonCreds, CoreMatchers.is(CoreMatchers.instanceOf(NtlmPasswordAuthenticator.class)));
            NtlmPasswordAuthenticator ntlmAnonCreds = anonCreds.unwrap(NtlmPasswordAuthenticator.class);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Mon Mar 13 12:00:57 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/context/AbstractCIFSContext.java

            return new CIFSContextCredentialWrapper(this, creds);
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withAnonymousCredentials()
         */
        @Override
        public CIFSContext withAnonymousCredentials () {
            return withCredentials(new NtlmPasswordAuthenticator());
        }
    
    
        /**
         * {@inheritDoc}
         *
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 3.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/tests/SessionTest.java

                f.resolve("test").exists();
            }
        }
    
    
        @Test
        public void logonAnonymous () throws IOException {
            try ( SmbResource f = new SmbFile(getTestShareGuestURL(), withAnonymousCredentials()) ) {
                checkConnection(f);
            }
            catch ( SmbAuthException e ) {
                if ( e.getNtStatus() != NtStatus.NT_STATUS_ACCESS_DENIED ) {
                    throw e;
                }
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 15.8K bytes
    - Viewed (0)
  5. 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
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/EnumTest.java

        @Test
        public void testBrowse () throws MalformedURLException, CIFSException {
            CIFSContext ctx = withAnonymousCredentials();
            try ( SmbFile smbFile = new SmbFile("smb://", ctx) ) {
                try ( CloseableIterator<SmbResource> it = smbFile.children() ) {
                    while ( it.hasNext() ) {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:09:03 GMT 2023
    - 25.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/tests/BaseCIFSTest.java

        }
    
    
        protected CIFSContext withTestGuestCredentials () {
            return getContext().withGuestCrendentials();
        }
    
    
        protected CIFSContext withAnonymousCredentials () {
            return getContext().withAnonymousCredentials();
        }
    
    
        protected String getTestDomain () {
            String testDomain = getProperties().get(TestProperties.TEST_DOMAIN);
            Assume.assumeNotNull(testDomain);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/DfsImpl.java

                    if ( trans != null ) {
                        // get domain referral
                        initial = trans.getDfsReferrals(tf.withAnonymousCredentials(), "", trans.getRemoteHostName(), authDomain, 0);
                    }
                    if ( initial != null ) {
                        DfsReferralDataInternal start = initial.unwrap(DfsReferralDataInternal.class);
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Thu Jan 05 13:07:29 GMT 2023
    - 29.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/tests/DfsTest.java

            super.setUp();
            Assume.assumeFalse(getContext().getConfig().isDfsDisabled());
        }
    
    
        @Test
        public void resolveDC () throws CIFSException {
            CIFSContext context = withAnonymousCredentials();
            DfsResolver dfs = context.getDfs();
    
            try ( SmbTransport dc = dfs.getDc(context, getTestDomain()) ) {
                Address addr = dc.getRemoteAddress();
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Sun Mar 01 09:46:04 GMT 2020
    - 13.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeConnection.java

                    // refresh anonymous session or fallback to anonymous from guest login
                    try ( SmbSessionInternal s = trans
                            .getSmbSession(this.ctx.withAnonymousCredentials(), treesess.getTargetHost(), treesess.getTargetDomain())
                            .unwrap(SmbSessionInternal.class);
                          SmbTreeImpl tr = s.getSmbTree(share, null).unwrap(SmbTreeImpl.class) ) {
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 10:50:16 GMT 2020
    - 31K bytes
    - Viewed (0)
Back to top