- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for withAnonymousCredentials (0.13 sec)
-
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} *
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 10:50:16 UTC 2020 - 3.7K bytes - Viewed (0) -
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) -
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()); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.4K bytes - Viewed (0) -
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);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.1K bytes - Viewed (0) -
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);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Mon Mar 13 12:00:57 UTC 2023 - 9.9K bytes - Viewed (0) -
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() ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 25.5K bytes - Viewed (0) -
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; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:09:03 UTC 2023 - 15.8K bytes - Viewed (0) -
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();
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Mar 01 09:46:04 UTC 2020 - 13.5K bytes - Viewed (0) -
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);
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Thu Jan 05 13:07:29 UTC 2023 - 29.1K bytes - Viewed (0) -
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) ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Tue Jul 07 10:50:16 UTC 2020 - 31K bytes - Viewed (0)