Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 118 for 0x02FF (0.06 sec)

  1. src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java

                request.setFileId(testFileId);
                request.setData(data, 512, 1024);
                request.setOffset(4096L);
                request.setRemainingBytes(2048);
                request.setWriteFlags(0x02);
    
                // Calculate expected size
                int expectedSize = ((Smb2Constants.SMB2_HEADER_LENGTH + 48 + 1024 + 7) / 8) * 8;
                assertEquals(expectedSize, request.size());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseStateTest.java

        void testLeaseStateConstants() {
            assertEquals(0x00, Smb2LeaseState.SMB2_LEASE_NONE);
            assertEquals(0x01, Smb2LeaseState.SMB2_LEASE_READ_CACHING);
            assertEquals(0x02, Smb2LeaseState.SMB2_LEASE_HANDLE_CACHING);
            assertEquals(0x04, Smb2LeaseState.SMB2_LEASE_WRITE_CACHING);
            assertEquals(0x03, Smb2LeaseState.SMB2_LEASE_READ_HANDLE);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryRequestTest.java

        @Test
        @DisplayName("Test all file information class constants")
        void testFileInformationClassConstants() {
            assertEquals(0x01, Smb2QueryDirectoryRequest.FILE_DIRECTORY_INFO);
            assertEquals(0x02, Smb2QueryDirectoryRequest.FILE_FULL_DIRECTORY_INFO);
            assertEquals(0x03, Smb2QueryDirectoryRequest.FILE_BOTH_DIRECTORY_INFO);
            assertEquals(0x0C, Smb2QueryDirectoryRequest.FILE_NAMES_INFO);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        void byteArrayConstructor_malformedDER_throwsWrapped() {
            // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content)
            byte[] malformed = new byte[] { 0x30, 0x02, 0x01 };
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(malformed, null));
            assertTrue(ex.getMessage().contains("Malformed Kerberos Ticket"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

        }
    
        @Test
        @DisplayName("readParameterWordsWireFormat with a too-short buffer - throws exception")
        void testReadParameterWordsWithShortBuffer() {
            byte[] buffer = new byte[] { 0x00, 0x01, 0x02 }; // only three bytes
            assertThrows(ArrayIndexOutOfBoundsException.class, () -> response.readParameterWordsWireFormat(buffer, 0));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        void testReadAtDifferentOffsets(int offset) throws SMBProtocolDecodingException {
            // Given
            byte[] buffer = new byte[offset + 20];
            SMBUtil.writeInt2(16, buffer, offset);
            buffer[offset + 2] = 0x02; // PIPE
            buffer[offset + 3] = 0;
            SMBUtil.writeInt4(0x1234, buffer, offset + 4);
            SMBUtil.writeInt4(0x5678, buffer, offset + 8);
            SMBUtil.writeInt4(0x9ABC, buffer, offset + 12);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Assert
            assertEquals(expectedFlags, queryPolicy.getFlags());
            // Binary check for individual flags
            assertEquals(0x03, queryPolicy.getFlags()); // 0x01 | 0x02 = 0x03
        }
    
        @Test
        void getOpnum_shouldReturnCorrectValue() {
            // Arrange
            short level = 1;
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/ntlmssp/av/AvPairsTest.java

         */
        @Test
        @DisplayName("Decode unknown AvPair type as generic AvPair")
        void testDecodeUnknownType() throws CIFSException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            int unknownType = 0xFF;
            byte[] avPairData = createAvPairData(unknownType, data);
            byte[] eolData = createEolData();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

        private static final int PRIMARY_SETUP_OFFSET = 61;
        private static final int SECONDARY_PARAMETER_OFFSET = 51;
    
        private static final int DISCONNECT_TID = 0x01;
        private static final int ONE_WAY_TRANSACTION = 0x02;
    
        private static final int PADDING_SIZE = 2;
    
        private final int flags = 0x00;
        private int fid;
        private int pad = 0;
        private int pad1 = 0;
        private boolean hasMore = true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NbtException.java

        public static final int SUCCESS = 0;
        /** Name service error class */
        public static final int ERR_NAM_SRVC = 0x01;
        /** Session service error class */
        public static final int ERR_SSN_SRVC = 0x02;
    
        // name service error codes
        /** Format error in the name service */
        public static final int FMT_ERR = 0x1;
        /** Server error in the name service */
        public static final int SRV_ERR = 0x2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
Back to top