Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 37 for ANONYMOUS (2.1 sec)

  1. src/main/java/jcifs/smb/AuthenticationProvider.java

     * scattered authentication implementations.
     */
    public interface AuthenticationProvider {
    
        /**
         * Authentication type enumeration
         */
        enum AuthType {
            NTLM, KERBEROS, SPNEGO, GUEST, ANONYMOUS
        }
    
        /**
         * Gets the authentication type
         *
         * @return the authentication type
         */
        AuthType getAuthType();
    
        /**
         * Authenticates using the provided context
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  2. src/test/java/jcifs/CredentialsTest.java

            String result = mockCredentials.getUserDomain();
    
            // Then
            assertEquals(domain, result);
            verify(mockCredentials).getUserDomain();
        }
    
        @Test
        @DisplayName("Should check for anonymous credentials")
        void testIsAnonymous() {
            // Given
            when(mockCredentials.isAnonymous()).thenReturn(true);
    
            // When
            boolean isAnonymous = mockCredentials.isAnonymous();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeConnection.java

            try (SmbSessionImpl treesess = t.getSession()) {
                if (treesess.getCredentials().isAnonymous() || treesess.getCredentials().isGuest()) {
                    // refresh anonymous session or fallback to anonymous from guest login
                    try (SmbSessionInternal s =
                            trans.getSmbSession(this.ctx.withAnonymousCredentials(), treesess.getTargetHost(), treesess.getTargetDomain())
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  4. src/main/java/jcifs/CIFSContext.java

         *
         * @return a child context using the configured default credentials
         */
        CIFSContext withDefaultCredentials();
    
        /**
         * Create a child context with anonymous credentials
         *
         * @return a child context using anonymous credentials
         */
        CIFSContext withAnonymousCredentials();
    
        /**
         * Create a child context with guest credentials
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java

                request.setFileId(secondFileId);
                request.setFileId(testFileId);
            }, "Should handle multiple setFileId calls");
        }
    
        @Test
        @DisplayName("Should test interface with anonymous implementation")
        void testAnonymousImplementation() {
            // Given
            byte[] capturedFileId = new byte[1];
            RequestWithFileId anonymousImpl = new RequestWithFileId() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            assertArrayEquals(blob, resp.getBlob(), "Security blob should match");
            assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode");
            assertTrue(resp.isLoggedInAsGuest(), "Guest/anonymous should be detected");
    
            // prepare should propagate session id when received
            CIFSContext mockCtx = mock(CIFSContext.class);
            when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/InfoTest.java

            transactionMock = mock(SmbComTransactionResponse.class);
        }
    
        @Test
        void testSmbComQueryInformationResponseGetters() throws Exception {
            // The constructor is package‑private; use an anonymous subclass
            SmbComQueryInformationResponse resp = new SmbComQueryInformationResponse(1000L) {
            };
            java.lang.reflect.Field fileAttr = SmbComQueryInformationResponse.class.getDeclaredField("fileAttributes");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SessionSetupHandlerTest.java

    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    @ExtendWith(MockitoExtension.class)
    class SessionSetupHandlerTest {
    
        // Provide two implementations: an anonymous class and a Mockito mock
        static Stream<Arguments> implementations() {
            SessionSetupHandler anon = new SessionSetupHandler() {
                // no methods to implement (marker interface)
            };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

            if (session.transport.server.security == SECURITY_USER) {
                if (cred instanceof final NtlmPasswordAuthentication auth) {
                    if (auth == NtlmPasswordAuthentication.ANONYMOUS) {
                        lmHash = new byte[0];
                        ntHash = new byte[0];
                        capabilities &= ~SmbConstants.CAP_EXTENDED_SECURITY;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
Back to top