- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for Type1Message (0.09 sec)
-
src/test/java/jcifs/ntlmssp/Type1MessageTest.java
// Given - Create a Type 1 message and convert to bytes Type1Message original = new Type1Message(mockContext); byte[] messageBytes = original.toByteArray(); // When Type1Message parsed = new Type1Message(messageBytes); // Then // Note: getType() method does not exist in Type1Message assertEquals(original.getFlags(), parsed.getFlags()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.1K bytes - Viewed (0) -
src/test/java/jcifs/ntlmssp/Type2MessageTest.java
@Test @DisplayName("Constructor with CIFSContext and Type1Message should derive flags") void testConstructor_CIFSContext_Type1Message() { // Given CIFSContext mockContext = createMockContext(); Type1Message type1 = new Type1Message(mockContext); type1.setFlags(Type1Message.NTLMSSP_NEGOTIATE_UNICODE | Type1Message.NTLMSSP_REQUEST_TARGET); // When
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 38.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/ntlmssp/Type2Message.java
* using default values from the current environment. * * @param type1 The Type-1 message which this represents a response to. */ public Type2Message(final Type1Message type1) { this(type1, null, null); } /** * Creates a Type-2 message in response to the given Type-1 message. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java
try { int response = parseResponseCode(); if (response != HTTP_UNAUTHORIZED && response != HTTP_PROXY_AUTH) { return; } final Type1Message type1 = (Type1Message) attemptNegotiation(response); if (type1 == null) { return; // no NTLM } int attempt = 0; while (attempt < MAX_REDIRECTS) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 22.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/NtlmContext.java
* @param token unused in this implementation * @return the Type 1 message bytes */ protected byte[] makeNegotiate(final byte[] token) { final Type1Message msg1 = new Type1Message(this.transportContext, this.ntlmsspFlags, this.auth.getUserDomain(), this.workstation); final byte[] out = msg1.toByteArray(); this.type1Bytes = out; if (log.isTraceEnabled()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 17.3K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
* * @param tc * context to use * @param type1 * The Type-1 message which this represents a response to. */ public Type2Message(final CIFSContext tc, final Type1Message type1) { this(tc, type1, null, null); } /** * Creates a Type-2 message in response to the given Type-1 message. * * @param tc * context to use
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpFilterTest.java
filter.init(filterConfig); // Test NTLM Type 1 message handling byte[] type1Message = new byte[] { 0x4E, 0x54, 0x4C, 0x4D, 0x53, 0x53, 0x50, 0x00, 0x01, 0x00, 0x00, 0x00 }; String authHeader = "NTLM " + new String(org.bouncycastle.util.encoders.Base64.encode(type1Message)); when(request.getHeader("Authorization")).thenReturn(authHeader);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 12.8K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
import org.slf4j.Logger; import org.slf4j.LoggerFactory; import jcifs.CIFSContext; import jcifs.RuntimeCIFSException; import jcifs.ntlmssp.NtlmFlags; import jcifs.ntlmssp.NtlmMessage; import jcifs.ntlmssp.Type1Message; import jcifs.ntlmssp.Type2Message; import jcifs.ntlmssp.Type3Message; import jcifs.smb.NtlmPasswordAuthentication; /** * Wraps an <code>HttpURLConnection</code> to provide NTLM authentication * services. *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmSspTest.java
lenient().when(mockConfig.getDefaultDomain()).thenReturn("DOMAIN"); lenient().when(mockConfig.isUseUnicode()).thenReturn(true); // Mock NameServiceClient for Type1Message test lenient().when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient); lenient().when(mockNameServiceClient.getLocalHost()).thenReturn(mockAddress);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 11.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbSession.java
} catch (final SmbException se) { /* We must close the transport or the server will be expecting a * Type3Message. Otherwise, when we send a Type1Message it will return * "Invalid parameter". */ try { transport.disconnect(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 20.7K bytes - Viewed (0)