- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for withAnonymousCredentials (0.14 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/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)