Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 355 for isGuest (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/test/java/jcifs/CredentialsTest.java

        @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();
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  2. src/main/java/jcifs/Credentials.java

         */
        boolean isAnonymous();
    
        /**
         * Check if these are guest credentials.
         * @return whether these are guest credentials
         */
        boolean isGuest();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. src/test/java/jcifs/context/AbstractCIFSContextTest.java

            // Verify that the new context uses NtlmPasswordAuthenticator (guest)
            assertTrue(wrappedContext.getCredentials() instanceof NtlmPasswordAuthenticator);
            assertTrue(wrappedContext.getCredentials().isGuest());
        }
    
        @Test
        void testGetCredentials() {
            assertEquals(mockCredentials, context.getCredentials());
        }
    
        @Test
        void testHasDefaultCredentials_withNonAnonymous() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/JAASAuthenticator.java

        @Override
        public boolean isAnonymous() {
            return false;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#isGuest()
         */
        @Override
        public boolean isGuest() {
            return false;
        }
    
        @Override
        public Kerb5Authenticator clone() {
            JAASAuthenticator auth = new JAASAuthenticator();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.3K bytes
    - Click Count (1)
  5. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            assertTrue(guestAuth.isGuest());
            assertFalse(guestAuth.isAnonymous());
    
            // Test anonymous detection
            NtlmPasswordAuthenticator anonAuth = new NtlmPasswordAuthenticator("", new char[0]);
            assertTrue(anonAuth.isAnonymous());
            assertFalse(anonAuth.isGuest());
    
            // Test user authentication
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (0)
  6. 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
            }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            return getName();
        }
    
        @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;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
  8. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.4K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SmbSessionImpl.java

                        response = sessResponse;
                    }
    
                    if (!this.getConfig().isAllowGuestFallback() && response.isLoggedInAsGuest()
                            && (!this.credentials.isGuest() && !this.credentials.isAnonymous())) {
                        throw new SmbAuthException(NtStatus.NT_STATUS_LOGON_FAILURE);
                    }
                    if (!this.credentials.isAnonymous() && response.isLoggedInAsGuest()) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                        this.lmHash = new byte[0];
                        this.ntHash = new byte[0];
                        this.capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
                        if (a.isGuest()) {
                            this.accountName = a.getUsername();
                            if (this.isUseUnicode()) {
                                this.accountName = this.accountName.toUpperCase();
                            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.9K bytes
    - Click Count (0)
Back to Top