- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for DialectVersion (0.86 sec)
-
src/test/java/jcifs/config/BaseConfigurationTest.java
void testInitProtocolVersionsWithDialectVersions() { config.initProtocolVersions(DialectVersion.SMB210, DialectVersion.SMB300); assertEquals(DialectVersion.SMB210, config.getMinimumVersion()); assertEquals(DialectVersion.SMB300, config.getMaximumVersion()); } @Test @DisplayName("Test initProtocolVersions with null DialectVersions")
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
encryptionContext = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey); } @Test @DisplayName("Should create encryption context with valid parameters") void testConstructor() { // When Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, testEncryptionKey, testDecryptionKey); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
&& config.getMaximumVersion().atLeast(DialectVersion.SMB300)) { this.capabilities |= Smb2Constants.SMB2_GLOBAL_CAP_ENCRYPTION; } final Set<DialectVersion> dvs = DialectVersion.range(DialectVersion.max(DialectVersion.SMB202, config.getMinimumVersion()), config.getMaximumVersion()); this.dialects = new int[dvs.size()];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
import org.mockito.junit.jupiter.MockitoSettings; import org.mockito.quality.Strictness; import jcifs.Address; import jcifs.CIFSContext; import jcifs.Configuration; import jcifs.DialectVersion; import jcifs.internal.smb2.nego.Smb2NegotiateResponse; /** * Test Pre-Authentication Integrity improvements */ @ExtendWith(MockitoExtension.class) @MockitoSettings(strictness = Strictness.LENIENT)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0) -
src/test/java/jcifs/config/SecurityConfigurationTest.java
assertTrue("SMB1 should be disabled", config.getMinimumVersion().atLeast(DialectVersion.SMB202)); // Minimum version should be SMB2 or higher assertTrue("Minimum version should be SMB2 or higher", config.getMinimumVersion().atLeast(DialectVersion.SMB202)); } /** * Test that encryption is properly configured */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 3.1K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java
import org.bouncycastle.crypto.params.AEADParameters; import org.bouncycastle.crypto.params.KeyParameter; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSException; import jcifs.DialectVersion; import jcifs.internal.smb2.nego.EncryptionNegotiateContext; import jcifs.util.SecureKeyManager; /** * SMB2/SMB3 Encryption Context * * Manages encryption and decryption operations for SMB2/SMB3 sessions.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 35.5K bytes - Viewed (0) -
src/main/java/jcifs/config/BaseConfiguration.java
*/ protected void initProtocolVersions(final String minStr, final String maxStr) { final DialectVersion min = minStr != null && !minStr.isEmpty() ? DialectVersion.valueOf(minStr) : null; final DialectVersion max = maxStr != null && !maxStr.isEmpty() ? DialectVersion.valueOf(maxStr) : null; initProtocolVersions(min, max); } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 36.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
log.debug("Server returned ANY dialect"); return false; } final Smb2NegotiateRequest r = (Smb2NegotiateRequest) req; DialectVersion selected = null; for (final DialectVersion dv : DialectVersion.values()) { if (!dv.isSMB2()) { continue; } if (dv.getDialect() == getDialectRevision()) { selected = dv;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeHandleImpl.java
jcifs.DialectVersion dialect = transport.getNegotiateResponse().getSelectedDialect(); return transport.isSMB2() && dialect.atLeast(jcifs.DialectVersion.SMB300) && !dialect.atLeast(jcifs.DialectVersion.SMB311); } catch (final SmbException e) { log.debug("Failed to connect for determining SMB 3.0 support", e);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
} final Smb2NegotiateResponse resp = (Smb2NegotiateResponse) this.negotiated; final DialectVersion dialect = resp.getSelectedDialect(); int cipherId = -1; if (dialect.atLeast(DialectVersion.SMB311)) { cipherId = resp.getSelectedCipher(); if (cipherId == -1) {Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 69.8K bytes - Viewed (0)