Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for D2guest (0.03 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertFalse(auth1.isGuest());
            assertFalse(auth1.isAnonymous());
    
            // Test guest type with char array
            char[] guestPassword = "GuestPass123!".toCharArray();
            NtlmPasswordAuthenticator auth2 =
                    new NtlmPasswordAuthenticator("DOMAIN", "guest", guestPassword, NtlmPasswordAuthenticator.AuthenticationType.GUEST);
    
            assertTrue(auth2.isGuest());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/Credentials.java

         * @return whether these are anonymous credentials
         */
        boolean isAnonymous();
    
        /**
         * Check if these are guest credentials.
         * @return whether these are guest credentials
         */
        boolean isGuest();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/CredentialsInternalTest.java

            private final boolean anonymous;
            private final boolean guest;
            private final Subject subject;
            private final boolean failOnRefresh;
    
            TestCredentials(String domain, boolean anonymous, boolean guest, Subject subject, boolean failOnRefresh) {
                this.domain = domain;
                this.anonymous = anonymous;
                this.guest = guest;
                this.subject = subject;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/CredentialsTest.java

        }
    
        @Test
        @DisplayName("Should check for guest credentials")
        void testIsGuest() {
            // Given
            when(mockCredentials.isGuest()).thenReturn(true);
    
            // When
            boolean isGuest = mockCredentials.isGuest();
    
            // Then
            assertTrue(isGuest);
            verify(mockCredentials).isGuest();
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            setupNegotiateStubs();
    
            NtlmPasswordAuthenticator auth = mock(NtlmPasswordAuthenticator.class);
            when(auth.isAnonymous()).thenReturn(true);
            when(auth.isGuest()).thenReturn(true);
            when(auth.getUsername()).thenReturn("guest");
            when(auth.getUserDomain()).thenReturn("dom");
    
            // Construct
            SmbComSessionSetupAndX obj = new SmbComSessionSetupAndX(mockContext, mockNegotiate, mockAndX, auth);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            }
        }
    
        @Test
        @DisplayName("isAnonymous and isGuest are always false")
        void testIsAnonymousAndGuestFalse() {
            JAASAuthenticator auth = new JAASAuthenticator();
            // JAAS-based authenticator should never be anonymous or guest
            assertFalse(auth.isAnonymous());
            assertFalse(auth.isGuest());
        }
    
        @ParameterizedTest
        @EnumSource(SubjectVariant.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            }
    
            @Override
            public void refresh() throws CIFSException {
                // no-op for tests
            }
    
            @Override
            public boolean isGuest() {
                return false; // not guest for test purposes
            }
    
            @Override
            public boolean isAnonymous() {
                return false; // not anonymous for test purposes
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            assertTrue(wrappedContext instanceof CIFSContextCredentialWrapper);
            // Verify that the new context uses NtlmPasswordAuthenticator (guest)
            assertTrue(wrappedContext.getCredentials() instanceof NtlmPasswordAuthenticator);
            assertTrue(wrappedContext.getCredentials().isGuest());
        }
    
        @Test
        void testGetCredentials() {
            assertEquals(mockCredentials, context.getCredentials());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        @Override
        public boolean isAnonymous() {
            return this.type == AuthenticationType.NULL;
        }
    
        @Override
        public boolean isGuest() {
            return this.type == AuthenticationType.GUEST;
        }
    
        static String unescape(String str) throws NumberFormatException, UnsupportedEncodingException {
            char ch;
            int i, j, state, len;
            char[] out;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmContext.java

            return new Type3Message(this.transportContext, msg2, this.targetName, passwordString,
                    this.auth.isGuest() ? null : this.auth.getUserDomain(),
                    this.auth.isGuest() ? this.transportContext.getConfig().getGuestUsername() : this.auth.getUsername(), this.workstation,
                    this.ntlmsspFlags, this.auth.isGuest() || !this.auth.isAnonymous());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
Back to top