- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for withAnonymousCredentials (0.15 sec)
-
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)