Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getSecurityMode (0.89 sec)

  1. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponseTest.java

            assertArrayEquals(testGuid, response.getServerGuid(), "Server GUID should match");
            assertEquals(testSecurityMode, response.getSecurityMode(), "Security mode should match");
            assertEquals(testDialect, response.getDialect(), "Dialect should match");
        }
    
        @Test
        @DisplayName("Test decode with different buffer offset")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            request = new Smb2NegotiateRequest(mockConfig, Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED);
    
            // Then
            assertNotNull(request);
            assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED, request.getSecurityMode());
            assertFalse(request.isSigningEnforced());
            assertTrue(request instanceof ServerMessageBlock2Request);
        }
    
        @Test
        @DisplayName("Should set DFS capability when enabled")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTreeImpl.java

                return;
            }
            final ValidateNegotiateInfoResponse out = resp.getOutputData(ValidateNegotiateInfoResponse.class);
    
            if (nego.getSecurityMode() != out.getSecurityMode() || nego.getCapabilities() != out.getCapabilities()
                    || nego.getDialectRevision() != out.getDialect() || !Arrays.equals(nego.getServerGuid(), out.getServerGuid())) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

        public byte[] getServerGuid() {
            return this.serverGuid;
        }
    
        /**
         * Gets the security mode
         *
         * @return the security mode flags from the server
         */
        public int getSecurityMode() {
            return this.securityMode;
        }
    
        /**
         * Gets the negotiated SMB dialect
         *
         * @return the SMB dialect negotiated with the server
         */
        public int getDialect() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

        /**
         * Gets the security mode flags for this negotiation request.
         *
         * @return the securityMode
         */
        public int getSecurityMode() {
            return this.securityMode;
        }
    
        @Override
        public boolean isSigningEnforced() {
            return (getSecurityMode() & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0;
        }
    
        /**
         * Gets the client capabilities flags.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbSessionImpl.java

            SmbException ex = null;
            SSPContext ctx = null;
            byte[] token = negoResp.getSecurityBlob();
            final int securityMode =
                    (negoResp.getSecurityMode() & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0 || trans.isSigningEnforced()
                            ? Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED
                            : Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        void testGetSecurityMode() throws Exception {
            // Given
            setPrivateField(response, "securityMode", Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED);
    
            // When
            int mode = response.getSecurityMode();
    
            // Then
            assertEquals(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED, mode);
        }
    
        @Test
        @DisplayName("Should check capability correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            return this.serverStartTime;
        }
    
        /**
         * Gets the security mode flags from the server.
         *
         * @return the securityMode
         */
        public int getSecurityMode() {
            return this.securityMode;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.SmbNegotiationResponse#haveCapabilitiy(int)
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top