- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for isSigningEnforced (0.07 sec)
-
src/test/java/jcifs/smb/SmbTransportInternalTest.java
@Test @DisplayName("isSigningOptional and isSigningEnforced reflect configuration") void signingModes() throws Exception { when(transport.isSigningOptional()).thenReturn(true); when(transport.isSigningEnforced()).thenReturn(false); assertTrue(transport.isSigningOptional()); assertFalse(transport.isSigningEnforced()); verify(transport).isSigningOptional();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java
// 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") void testDfsCapability() { // GivenRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportImplTest.java
@Mock private Address address; private SmbTransportImpl transport; @BeforeEach void setUp() throws Exception { when(ctx.getConfig()).thenReturn(cfg); when(cfg.isSigningEnforced()).thenReturn(false); when(cfg.getSessionTimeout()).thenReturn(30_000); when(cfg.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/config/DelegatingConfiguration.java
return this.delegate.isSigningEnabled(); } /** * {@inheritDoc} * * @see jcifs.Configuration#isSigningEnforced() */ @Override public boolean isSigningEnforced() { return this.delegate.isSigningEnforced(); } /** * {@inheritDoc} * * @see jcifs.Configuration#isIpcSigningEnforced() */ @Override
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 24.1K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
void testEncryptionSecurityDelegation() { // Given when(mockDelegate.isEncryptionEnabled()).thenReturn(true); when(mockDelegate.isSigningEnabled()).thenReturn(false); when(mockDelegate.isSigningEnforced()).thenReturn(true); when(mockDelegate.isIpcSigningEnforced()).thenReturn(true); when(mockDelegate.isForceExtendedSecurity()).thenReturn(true).thenReturn(false); // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
setField(session, "digest", null); when(transport.isSigningEnforced()).thenReturn(true); assertTrue(session.isSignatureSetupRequired()); // Case 3: not enforced, rely on negotiate response flag when(transport.isSigningEnforced()).thenReturn(false); jcifs.internal.SmbNegotiationResponse nego = mock(jcifs.internal.SmbNegotiationResponse.class);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java
return false; } if (req.isSigningEnforced() || this.server.signaturesRequired || this.server.signaturesEnabled && ctx.getConfig().isSigningEnabled()) { this.negotiatedFlags2 |= SmbConstants.FLAGS2_SECURITY_SIGNATURES; if (req.isSigningEnforced() || isSigningRequired()) {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
} continue; } if (!forceSigning && !tc.getConfig().isSigningEnforced() && conn.isSigningEnforced() && !conn.getNegotiateResponse().isSigningRequired()) { // if signing is not enforced, dont use connections that have signing enforcedRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 33.4K bytes - Viewed (0) -
src/test/java/jcifs/config/PropertyConfigurationTest.java
// When PropertyConfiguration testConfig = new PropertyConfiguration(props); // Then assertTrue(testConfig.isSigningEnforced()); assertTrue(testConfig.isSigningEnabled()); assertFalse(testConfig.isEncryptionEnabled()); } @Test @DisplayName("Should handle invalid property values gracefully")Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/PreauthIntegrityTest.java
private SmbTransportImpl transport; @BeforeEach void setUp() throws Exception { when(context.getConfig()).thenReturn(config); when(config.isSigningEnforced()).thenReturn(false); when(config.getSessionTimeout()).thenReturn(30_000); when(config.getResponseTimeout()).thenReturn(5_000); when(address.getHostAddress()).thenReturn("127.0.0.1");Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 10.5K bytes - Viewed (0)