- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getSelectedCipher (0.27 seconds)
-
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 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24K bytes - Click Count (0) -
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")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0) -
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; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)