Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for withCredentials (0.18 sec)

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

         */
        @Override
        public CIFSContext withCredentials ( Credentials creds ) {
            return new CIFSContextCredentialWrapper(this, creds);
        }
    
    
        /**
         * 
         * {@inheritDoc}
         *
         * @see jcifs.CIFSContext#withAnonymousCredentials()
         */
        @Override
        public CIFSContext withAnonymousCredentials () {
            return withCredentials(new NtlmPasswordAuthenticator());
        }
    
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 3.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/KerberosTest.java

            Subject s = getInitiatorSubject(getTestUser(), getTestUserPassword(), getTestUserDomainRequired(), null);
            CIFSContext ctx = getContext().withCredentials(new Kerb5Authenticator(s, getTestUserDomainRequired(), getTestUser(), getTestUserPassword()));
            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx) ) {
                f.exists();
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Mar 01 09:46:04 UTC 2020
    - 11.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/tests/SessionTest.java

            Assume.assumeTrue(Boolean.parseBoolean(getProperties().getOrDefault("jcifs.smb.client.useExtendedSecurity", "true")));
            byte[] hash = NtlmUtil.getNTHash(getTestUserPassword());
            CIFSContext ctx = getContext().withCredentials(new NtlmNtHashAuthenticator(getTestUserDomain(), getTestUser(), hash));
            try ( SmbResource f = new SmbFile(getTestShareURL(), ctx); ) {
                checkConnection(f);
                f.resolve("test").exists();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/CIFSContext.java

     * 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
     * {@link jcifs.context.CIFSContextWrapper} to get forward compatibility.
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/context/CIFSContextWrapper.java

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

            String val = this.properties.get(prop);
            Assume.assumeNotNull(val);
            return val;
        }
    
    
        protected CIFSContext withTestNTLMCredentials ( CIFSContext ctx ) {
            return ctx.withCredentials(new NtlmPasswordAuthenticator(getTestUserDomain(), getTestUser(), getTestUserPassword()));
        }
    
    
        protected CIFSContext withTestGuestCredentials () {
            return getContext().withGuestCrendentials();
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.1K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

            }
            try {
                if (smbAuthentication == null) {
                    file = new SmbFile(filePath, cifsContext);
                } else {
                    file = new SmbFile(filePath, cifsContext.withCredentials(getAuthenticator(smbAuthentication)));
                }
            } catch (final MalformedURLException e) {
                logger.warn("Could not parse url: " + filePath, e);
            }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu May 23 01:54:36 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/ContextConfigTest.java

            assertEquals("", ntlmAnonCreds.getPassword());
            assertThat("anonymous", ntlmAnonCreds.isAnonymous(), CoreMatchers.is(true));
    
            CIFSContext testCtx = this.context.withCredentials(new NtlmPasswordAuthenticator("TEST", "test-user", "test-pw"));
            Credentials setCreds = testCtx.getCredentials();
            assertThat(setCreds, CoreMatchers.is(CoreMatchers.instanceOf(NtlmPasswordAuthenticator.class)));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbFile.java

         * @throws MalformedURLException
         */
        @Deprecated
        public SmbFile ( URL url ) throws MalformedURLException {
            this(url, SingletonContext.getInstance().withCredentials(new NtlmPasswordAuthentication(SingletonContext.getInstance(), url.getUserInfo())));
        }
    
    
        /**
         * Constructs an SmbFile representing a resource on an SMB network such
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/jquery-3.7.1.min.js

    .expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n...
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:07:52 UTC 2024
    - 85.5K bytes
    - Viewed (0)
Back to top