Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 507 for type1 (0.02 sec)

  1. src/test/java/jcifs/ntlmssp/Type1MessageTest.java

            // When
            Type1Message type1 = new Type1Message(mockContext, flags, domain, workstation);
    
            // Then
            assertEquals(domain, type1.getSuppliedDomain());
            assertEquals(workstation, type1.getSuppliedWorkstation());
            assertTrue((type1.getFlags() & NtlmFlags.NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED) != 0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. okhttp-tls/src/test/java/okhttp3/tls/internal/der/DerTest.kt

        assertThat(buffer.readByteString()).isEqualTo("A20743054A6F6E6573".decodeHex())
      }
    
      @Test fun `decode implicit tagged implicit prefixed type`() {
        // Type1 ::= VisibleString
        // Type2 ::= [APPLICATION 3] IMPLICIT Type1
        // Type3 ::= [2] Type2
        // Type4 ::= [APPLICATION 7] IMPLICIT Type3
        val buffer =
          Buffer()
            .write("670743054A6F6E6573".decodeHex())
    
        val derReader = DerReader(buffer)
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 31.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

                // Given
                CIFSContext mockContext = createMockContext();
                Type1Message type1 = new Type1Message(mockContext);
                type1.setFlags(Type1Message.NTLMSSP_NEGOTIATE_UNICODE | Type1Message.NTLMSSP_REQUEST_TARGET);
    
                // When
                Type2Message message = new Type2Message(mockContext, type1);
    
                // Then
                assertNotNull(message);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  4. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

            this(type1, null, null);
        }
    
        /**
         * Creates a Type-2 message in response to the given Type-1 message.
         *
         * @param type1 The Type-1 message which this represents a response to.
         * @param challenge The challenge from the domain controller/server.
         * @param target The authentication target.
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

                    }
                    final Type3Message type3 = (Type3Message) attemptNegotiation(response);
                    if (type3 == null) {
                        return;
                    }
                    connection.setRequestProperty(authProperty, authMethod + ' ' + Base64.encode(type3.toByteArray()));
                    connection.connect(); // send type 3
                    if (cachedOutput != null && doOutput) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmHttpURLConnection.java

                    }
                    final NtlmMessage type3 = attemptNegotiation(response);
                    if (type3 == null) {
                        return;
                    }
                    this.connection.setRequestProperty(this.authProperty, this.authMethod + ' ' + Base64.toBase64String(type3.toByteArray()));
                    this.connection.connect(); // send type 3
                    if (this.cachedOutput != null && this.doOutput) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/FileEntryTest.java

        static Stream<Arguments> intGetterProvider() {
            return Stream.of(Arguments.of((IntGetter) FileEntry::getType, -1, "negative type"),
                    Arguments.of((IntGetter) FileEntry::getType, 0, "zero type"),
                    Arguments.of((IntGetter) FileEntry::getType, Integer.MAX_VALUE, "max type"),
    
                    Arguments.of((IntGetter) FileEntry::getAttributes, 0, "no attributes"),
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10K bytes
    - Viewed (0)
  9. src/main/java/jcifs/ntlmssp/Type3Message.java

        }
    
        /**
         * Sets the MIC
         *
         * @param type1 the Type-1 message bytes
         * @param type2 the Type-2 message bytes
         * @throws GeneralSecurityException if a cryptographic error occurs
         * @throws IOException if an I/O error occurs
         */
        public void setupMIC(final byte[] type1, final byte[] type2) throws GeneralSecurityException, IOException {
            final byte[] sk = this.masterKey;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

            // Assert - Verify we got the 401 response (simplified test)
            assertEquals(HTTP_UNAUTHORIZED, responseCode);
    
            // In a real scenario, the connection would reconnect and send Type1/Type3 messages
            // This simplified test just verifies the initial handshake detection
        }
    
        /**
         * Test handshake failure when the server does not return an NTLM challenge.
         * @throws IOException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
Back to top