Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 246 for 0x10 (0.02 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSignatureTest.java

        /**
         * Test constructor with malformed data (too short).
         */
        @Test
        void testConstructorMalformedData() {
            // Prepare data (only 2 bytes, less than an int)
            byte[] data = new byte[] { 0x01, 0x02 };
    
            // Verify that PACDecodingException is thrown
            assertThrows(PACDecodingException.class, () -> {
                new PacSignature(data);
            });
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/Trans2QueryFSInformationResponse.java

    package jcifs.smb1.smb1;
    
    class Trans2QueryFSInformationResponse extends SmbComTransactionResponse {
    
        // information levels
        static final int SMB_INFO_ALLOCATION = 1;
        static final int SMB_QUERY_FS_SIZE_INFO = 0x103;
        static final int SMB_FS_FULL_SIZE_INFORMATION = 1007;
    
        class SmbInfoAllocation implements AllocInfo {
            long alloc; // Also handles SmbQueryFSSizeInfo
            long free;
            int sectPerAlloc;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComNegotiateResponse.java

                return bufferIndex - start;
            }
            this.server.securityMode = buffer[bufferIndex] & 0xFF;
            bufferIndex++;
            this.server.security = this.server.securityMode & 0x01;
            this.server.encryptedPasswords = (this.server.securityMode & 0x02) == 0x02;
            this.server.signaturesEnabled = (this.server.securityMode & 0x04) == 0x04;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComWrite.java

            return dstIndex - start;
        }
    
        @Override
        protected int writeBytesWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            dst[dstIndex] = (byte) 0x01; /* BufferFormat */
            dstIndex++;
            SMBUtil.writeInt2(this.count, dst, dstIndex); /* DataLength? */
            dstIndex += 2;
            System.arraycopy(this.b, this.off, dst, dstIndex, this.count);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

            byte[] bufferData = buf.getBuffer();
            assertEquals((byte) 0xCD, bufferData[startIndex + alignmentBytes], "Least significant byte should be first");
            assertEquals((byte) 0x00, bufferData[startIndex + alignmentBytes + 1], "Most significant byte should be second");
        }
    
        /**
         * When given a buffer with sufficient length, decode performs
         * the inverse of encode.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            smb.tid = 789;
            smb.uid = 101;
            smb.flags2 = ServerMessageBlock.FLAGS2_UNICODE;
            smb.useUnicode = true;
    
            byte[] params = { 0x01, 0x02, 0x03, 0x04 };
            byte[] bytes = { 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F };
            smb.setParamWords(params);
            smb.setBytes(bytes);
    
            byte[] buffer = new byte[1024];
            int length = smb.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessNotification.java

         */
        public static class WitnessIPAddress {
            private final InetAddress address;
            private final int flags;
    
            /** Flag indicating IPv4 address type */
            public static final int IPV4 = 0x01;
            /** Flag indicating IPv6 address type */
            public static final int IPV6 = 0x02;
    
            /**
             * Creates a new witness IP address.
             *
             * @param address the IP address
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbRandomAccessFile.java

        }
    
        @Override
        public final boolean readBoolean() throws SmbException {
            if (read(tmp, 0, 1) < 0) {
                throw new SmbException("EOF");
            }
            return tmp[0] != (byte) 0x00;
        }
    
        @Override
        public final byte readByte() throws SmbException {
            if (read(tmp, 0, 1) < 0) {
                throw new SmbException("EOF");
            }
            return tmp[0];
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

        }
    
        @Test
        void testConstructorWithMalformedToken() {
            // Test that PACDecodingException is thrown for a malformed token
            byte[] malformedToken = new byte[] { 0x01, 0x02, 0x03 };
            PACDecodingException e = assertThrows(PACDecodingException.class, () -> new KerberosTicket(malformedToken, (byte) 0, keys));
            assertTrue(e.getMessage().startsWith("Malformed kerberos ticket"));
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
Back to top