Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 203 for 0102 (3.84 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

        }
    
        /**
         * Test constructor with a malformed token.
         */
        @Test
        void testConstructorMalformed() {
            byte[] malformedToken = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            assertThrows(PACDecodingException.class, () -> new KerberosEncData(malformedToken, Collections.emptyMap()));
        }
    
        /**
         * Test constructor with an unknown field.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb1/com/SmbComLockingAndXTest.java

            SmbComLockingAndX cmd = new SmbComLockingAndX(cfg);
            setField(cmd, "fid", 42);
            setField(cmd, "typeOfLock", (byte) 0x07);
            setField(cmd, "newOpLockLevel", (byte) 0x02);
            String repr = cmd.toString();
            assertTrue(repr.contains("fid=42"));
            assertTrue(repr.contains("typeOfLock=7"));
            assertTrue(repr.contains("newOplockLevel=2"));
        }
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

         */
        @Test
        @DisplayName("Test byte array fields (encryptionKey and guid)")
        public void testByteArrayFields() {
            // Test encryptionKey
            byte[] key = new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08 };
            serverData.encryptionKey = key;
            assertNotNull(serverData.encryptionKey);
            assertArrayEquals(key, serverData.encryptionKey);
    
            // Test with empty array
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/trans2/Trans2FindFirst2ResponseTest.java

            buffer[6] = 0x00;
            buffer[7] = 0x00;
            // lastNameOffset (2 bytes)
            buffer[8] = 0x10;
            buffer[9] = 0x00;
    
            int result = response.readParametersWireFormat(buffer, 0, 10);
    
            // Should read 10 bytes
            assertEquals(10, result);
            // Check the values were parsed correctly
            assertEquals(1, response.getSid());
            assertEquals(5, response.getNumEntries());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

            long value = 999L;
            SMBUtil.writeInt8(value, buffer, 0);
    
            // Decode with extra length - should only read 8 bytes
            int bytesRead = fileInfo.decode(buffer, 0, 100);
    
            assertEquals(8, bytesRead);
            assertTrue(fileInfo.toString().contains("endOfFile=" + value));
        }
    
        @Test
        @DisplayName("Test toString format")
        void testToString() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java

     */
    public class SmbDirectNegotiateResponse {
    
        // Protocol constants
        /** SMB Direct negotiate response message type */
        public static final int NEGOTIATE_RESPONSE = 0x02;
        /** Status indicating successful negotiation */
        public static final int STATUS_SUCCESS = 0x00000000;
        /** Status indicating SMB Direct is not supported */
        public static final int STATUS_NOT_SUPPORTED = 0x00000001;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  7. fess-crawler/src/main/resources/org/codelibs/fess/crawler/mime/tika-mimetypes.xml

              <match value="\nStatus:" type="string" offset="0:1024"/>
              <match value="\nSubject:" type="string" offset="0:1024"/>
              <match value="\nTo:" type="string" offset="0:1024"/>
              <match value="\nUser-Agent:" type="string" offset="0:1024"/>
              <match value="\nX-Mailer:" type="string" offset="0:1024"/>
              <match value="\nX-Originating-IP:" type="stringignorecase" offset="0:1024"/>
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Oct 16 07:46:32 UTC 2025
    - 320.2K bytes
    - Viewed (2)
  8. src/main/java/jcifs/pac/PacMac.java

            try {
                Mac m = Mac.getInstance("HmacSHA1");
                m.init(new SecretKeySpec(dk, HMAC_KEY));
                System.arraycopy(m.doFinal(input), 0, output, 0, 12);
                return output;
            } finally {
                Arrays.fill(dk, 0, dk.length, (byte) 0);
            }
        }
    
        /**
         * Derives an AES key using the Kerberos key derivation function.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/util/ResponseDataUtilTest.java

            }
        }
    
        public void test_createResponseBodyFile_binaryContent() throws Exception {
            // Test with binary content
            byte[] binaryData = new byte[] { 0x00, 0x01, 0x02, (byte) 0xFF, (byte) 0xFE, (byte) 0xFD };
    
            ResponseData responseData = new ResponseData() {
                @Override
                public InputStream getResponseBody() {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Sat Nov 22 13:28:22 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmUtil.java

            final byte[] passwordBytes = Strings.getOEMBytes(password, tc.getConfig());
            int passwordLength = passwordBytes.length;
    
            // Only encrypt the first 14 bytes of the password for Pre 0.12 NT LM
            if (passwordLength > 14) {
                passwordLength = 14;
            }
            System.arraycopy(passwordBytes, 0, p14, 0, passwordLength);
            NtlmUtil.E(p14, NtlmUtil.S8, p21);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
Back to top