Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for EXTRA (1.06 sec)

  1. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

        }
    
        @Test
        @DisplayName("Test decode with valid data")
        void testDecodeWithValidData() throws SMBProtocolDecodingException {
            // Prepare test data
            byte[] buffer = new byte[30]; // Extra space to test offset
            int bufferIndex = 5; // Start at offset 5
            long expectedAllocationSize = 2048L;
            long expectedEndOfFile = 1536L;
            int expectedNumberOfLinks = 5;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacLogonInfo.java

         * @return the resource group SIDs array
         */
        public SID[] getResourceGroupSids() {
            return this.resourceGroupSids;
        }
    
        /**
         * Returns an array of extra SIDs associated with the user.
         * @return the extra SIDs array
         */
        public SID[] getExtraSids() {
            return this.extraSids;
        }
    
        /**
         * Returns the user account control flags.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileEndOfFileInformationTest.java

        }
    
        @Test
        @DisplayName("Test decode ignores extra buffer length")
        void testDecodeIgnoresExtraLength() throws SMBProtocolDecodingException {
            // Create larger buffer
            byte[] buffer = new byte[100];
            long value = 999L;
            SMBUtil.writeInt8(value, buffer, 0);
    
            // Decode with extra length - should only read 8 bytes
            int bytesRead = fileInfo.decode(buffer, 0, 100);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/UUIDTest.java

                assertArrayEquals(NODE, uuid.node);
            }
    
            @Test
            @DisplayName("UUID string with extra characters after valid UUID should parse correctly")
            void testUuidWithExtraCharacters() {
                // Arrange
                String uuidWithExtra = VALID_UUID_STRING + "EXTRA";
    
                // Act
                UUID uuid = new UUID(uuidWithExtra);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/HMACT64Test.java

                byte[] innerDigest = "inner_digest".getBytes();
                byte[] expectedOutput = "output_data".getBytes();
                byte[] buffer = new byte[expectedOutput.length + 10]; // Buffer with extra space
    
                when(mockMd5.digest()).thenReturn(innerDigest);
                when(mockMd5.digest(buffer, 0, expectedOutput.length)).thenAnswer(invocation -> {
                    byte[] b = invocation.getArgument(0);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

        public SmbNamedPipe getPipe() {
            return this.pipe;
        }
    
        @Override
        public SmbTreeHandleImpl ensureTreeConnected() throws CIFSException {
            if (this.treeHandle == null) {
                // extra acquire to keep the tree alive
                this.treeHandle = this.pipe.ensureTreeConnected();
            }
            return this.treeHandle.acquire();
        }
    
        public String getUncPath() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/FileInternalInfoTest.java

        @Test
        @DisplayName("Test decode with buffer offset")
        void testDecodeWithBufferOffset() throws SMBProtocolDecodingException {
            // Prepare test data with offset
            byte[] buffer = new byte[20]; // Extra space to test offset
            int bufferIndex = 7; // Start at offset 7
            long expectedIndexNumber = 0xFEDCBA9876543210L;
    
            // Encode test data at offset
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/PacLogonInfoTest.java

        }
    
        @Test
        @DisplayName("Test user flags using mock")
        void testUserFlags() throws Exception {
            PacLogonInfo logonInfo = mock(PacLogonInfo.class);
    
            // Test with extra SIDs flag
            when(logonInfo.getUserFlags()).thenReturn(PacConstants.LOGON_EXTRA_SIDS);
            assertEquals(PacConstants.LOGON_EXTRA_SIDS, logonInfo.getUserFlags());
    
            // Test with resource groups flag
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

             * techinque that NTLMv2 specifically thwarts. A real NTLM Filter would
             * need to do a NETLOGON RPC that JCIFS will likely never implement
             * because it requires a lot of extra crypto not used by CIFS.
             */
            Config.setProperty("jcifs.smb1.smb.lmCompatibility", "0");
            Config.setProperty("jcifs.smb1.smb.client.useExtendedSecurity", "false");
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/SMBSigningDigestTest.java

            verify(signingDigest, times(1)).verify(testData, offset, length, extraPad, message);
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 4, 8, 16 })
        @DisplayName("Test verify method with different extra padding values")
        void testVerifyWithDifferentExtraPadding(int extraPad) {
            // Arrange
            int offset = 0;
            int length = testData.length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top