Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getSelectedCipher (0.33 sec)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

        void testGetSelectedCipher() throws Exception {
            // Given
            setPrivateField(response, "selectedCipher", EncryptionNegotiateContext.CIPHER_AES128_GCM);
    
            // When
            int cipher = response.getSelectedCipher();
    
            // Then
            assertEquals(EncryptionNegotiateContext.CIPHER_AES128_GCM, cipher);
        }
    
        @Test
        @DisplayName("Should return selected preauth hash")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

            return this.selectedDialect;
        }
    
        /**
         * Gets the encryption cipher selected for SMB3 encryption.
         *
         * @return the selectedCipher
         */
        public int getSelectedCipher() {
            return this.selectedCipher;
        }
    
        /**
         * Gets the pre-authentication integrity hash algorithm selected for SMB 3.1.1.
         *
         * @return the selectedPreauthHash
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

            final DialectVersion dialect = resp.getSelectedDialect();
            int cipherId = -1;
    
            if (dialect.atLeast(DialectVersion.SMB311)) {
                cipherId = resp.getSelectedCipher();
                if (cipherId == -1) {
                    // Default to AES-128-GCM for SMB 3.1.1 if no cipher negotiated
                    cipherId = EncryptionNegotiateContext.CIPHER_AES128_GCM;
                }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
Back to top