Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for negotiated (0.86 sec)

  1. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

        }
    
        /**
         * Returns the server capabilities negotiated during the SMB handshake.
         *
         * @return the negotiated capabilities
         */
        public int getNegotiatedCapabilities() {
            return this.capabilities;
        }
    
        /**
         * Gets the negotiated send buffer size.
         *
         * @return negotiated send buffer size
         */
        public int getNegotiatedSendBufferSize() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/SmbNegotiationResponse.java

        /**
         * Checks whether SMB message signing has been successfully negotiated.
         *
         * @return whether signing has been negotiated
         */
        boolean isSigningNegotiated();
    
        /**
         * Checks whether a specific capability has been negotiated.
         *
         * @param cap the capability flag to check
         * @return whether capability is negotiated
         */
        boolean haveCapabilitiy(int cap);
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTransportImplTest.java

            assertFalse(enforced.isSigningOptional());
            assertTrue(enforced.isSigningEnforced());
    
            // Negotiated required -> enforced true; negotiated enabled-only -> optional true
            SmbNegotiationResponse nego = mock(SmbNegotiationResponse.class);
            setField(transport, "negotiated", nego);
            when(nego.isSigningNegotiated()).thenReturn(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbUnsupportedOperationExceptionTest.java

            // Arrange & Act
            SmbUnsupportedOperationException ex = new SmbUnsupportedOperationException();
    
            // Assert
            assertEquals("Operation is not supported with the negotiated capabilities", ex.getMessage(),
                    "Default message should match the class contract");
            assertNull(ex.getCause(), "No cause expected from default constructor");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComSessionSetupAndX.java

                final Object cred) throws SmbException, GeneralSecurityException {
            super(tc.getConfig(), SMB_COM_SESSION_SETUP_ANDX, andx);
            this.negotiated = negotiated;
            this.capabilities = negotiated.getNegotiatedCapabilities();
            final ServerData server = negotiated.getServerData();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoResponse.java

         *
         * @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() {
            return this.dialect;
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                this.encryptionKey = encryptionKey.clone();
                this.decryptionKey = decryptionKey.clone();
            }
        }
    
        /**
         * Get the negotiated cipher identifier
         * @return the negotiated cipher ID
         */
        public int getCipherId() {
            return this.cipherId;
        }
    
        /**
         * Get the SMB dialect version
         * @return the SMB dialect version
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java

        }
    
        /**
         * Get the negotiated SMB Direct protocol version
         *
         * @return negotiated protocol version
         */
        public int getNegotiatedVersion() {
            return negotiatedVersion;
        }
    
        /**
         * Set the negotiated SMB Direct protocol version
         *
         * @param negotiatedVersion negotiated protocol version
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTransportImpl.java

         */
        @Override
        public byte[] getServerEncryptionKey() {
            if (this.negotiated == null) {
                return null;
            }
    
            if (this.negotiated instanceof SmbComNegotiateResponse) {
                return ((SmbComNegotiateResponse) this.negotiated).getServerData().encryptionKey;
            }
            return null;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            when(negotiationResponse.canReuse(any(CIFSContext.class), anyBoolean())).thenReturn(true);
    
            // Use reflection to set the negotiated response
            Field negotiatedField = SmbTransportImpl.class.getDeclaredField("negotiated");
            negotiatedField.setAccessible(true);
            negotiatedField.set(initial, negotiationResponse);
    
            // When: Request connection with signing enforced
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
Back to top