- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for NegotiateContextRequest (0.12 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/internal/smb2/nego/NegotiateContextRequest.java
* * This class represents negotiate contexts used in SMB 3.1.1 * for capability negotiation and security enhancements. * * @author mbechler */ public interface NegotiateContextRequest extends Encodable { /** * Gets the negotiate context type. * * @return the SMB2 negotiate context type */ int getContextType();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.2K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java
assertTrue(preauth instanceof NegotiateContextRequest); assertTrue(encryption instanceof NegotiateContextRequest); } @Test @DisplayName("Should verify mock implementation") void testMockImplementation() { NegotiateContextRequest mockRequest = mock(NegotiateContextRequest.class); when(mockRequest.getContextType()).thenReturn(0xFF);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.8K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java
private final int[] dialects; private int capabilities; private final byte[] clientGuid = new byte[16]; private final int securityMode; private final NegotiateContextRequest[] negotiateContexts; private byte[] preauthSalt; /** * Constructs an SMB2 negotiate request with the specified configuration and security mode. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
when(mockRequest.getCapabilities()).thenReturn(Smb2Constants.SMB2_GLOBAL_CAP_DFS); when(mockRequest.getNegotiateContexts()) .thenReturn(new NegotiateContextRequest[] { createMockPreauthContext(), createMockEncryptionContext() }); // Setup negotiate contexts NegotiateContextResponse[] contexts =
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/internal/smb2/nego/PreauthIntegrityNegotiateContext.java
* This negotiate context is used in SMB 3.1.1 to establish * pre-authentication integrity protection against downgrade attacks. * * @author mbechler */ public class PreauthIntegrityNegotiateContext implements NegotiateContextRequest, NegotiateContextResponse { /** * Context type */ public static final int NEGO_CTX_PREAUTH_TYPE = 0x1; /** * SHA-512 */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/CompressionNegotiateContext.java
* * This context is used during SMB2 negotiation to negotiate compression * algorithms for SMB3 data compression support. */ public class CompressionNegotiateContext implements NegotiateContextRequest, NegotiateContextResponse { private static final Logger log = LoggerFactory.getLogger(CompressionNegotiateContext.class); // Context type /** Context ID for compression capabilities */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 7.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
log.error("Server returned no hash selection"); return false; } PreauthIntegrityNegotiateContext rpc = null; for (final NegotiateContextRequest rnc : req.getNegotiateContexts()) { if (rnc instanceof PreauthIntegrityNegotiateContext) { rpc = (PreauthIntegrityNegotiateContext) rnc; } }
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/PreauthIntegrityNegotiateContextTest.java
class InterfaceImplementationTests { @Test @DisplayName("Should implement NegotiateContextRequest interface") void testImplementsNegotiateContextRequest() { PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(); assertTrue(context instanceof NegotiateContextRequest); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 34K bytes - Click Count (0)