Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for withGuestCrendentials (0.11 sec)

  1. src/test/java/jcifs/tests/ContextConfigTest.java

            assertNotNull(this.context.getCredentials());
        }
    
    
        @Test
        @SuppressWarnings ( "deprecation" )
        public void testFixedCredentials () {
            Credentials guestCreds = this.context.withGuestCrendentials().getCredentials();
            assertThat(guestCreds, CoreMatchers.is(CoreMatchers.instanceOf(NtlmPasswordAuthenticator.class)));
            NtlmPasswordAuthenticator ntlmGuestCreds = guestCreds.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)
  2. src/test/java/jcifs/tests/SessionTest.java

                @Override
                public String getGuestUsername () {
                    return "jcifs-guest";
                }
            }).withGuestCrendentials();
    
            try ( SmbResource f = new SmbFile(getTestShareGuestURL(), ctx) ) {
                checkConnection(f);
            }
            catch ( SmbAuthException e ) {
                ignoreAuthFailure(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)
Back to top