Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 124 for getPtype (0.52 sec)

  1. src/test/java/jcifs/smb1/smb1/FileEntryTest.java

            }
        }
    
        @ParameterizedTest(name = "getType returns {0}")
        @ValueSource(ints = { 0, 1, -5, Integer.MAX_VALUE })
        @DisplayName("Parameterized type values")
        void typeParameterized(int type) {
            FileEntry mock = mock(FileEntry.class);
            when(mock.getType()).thenReturn(type);
            assertEquals(type, mock.getType());
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSignatureTest.java

            // Create PacSignature
            PacSignature pacSignature = new PacSignature(data);
    
            // Verify
            assertEquals(PacSignature.KERB_CHECKSUM_HMAC_MD5, pacSignature.getType());
            assertArrayEquals(checksum, pacSignature.getChecksum());
        }
    
        /**
         * Test constructor with HMAC_SHA1_96_AES128 type.
         *
         * @throws IOException if an I/O error occurs
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/ServerDataTest.java

            assertEquals(int.class, ServerData.class.getDeclaredField("sflags2").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("smaxMpxCount").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("maxBufferSize").getType());
            assertEquals(int.class, ServerData.class.getDeclaredField("sessKey").getType());
    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/main/java/jcifs/ntlmssp/av/AvPairs.java

         */
        public static boolean contains(final List<AvPair> pairs, final int type) {
            if (pairs == null) {
                return false;
            }
            for (final AvPair p : pairs) {
                if (p.getType() == type) {
                    return true;
                }
            }
            return false;
        }
    
        /**
         * Gets the first AV pair of the specified type from the list
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java

                    if (info.getType() == HandleType.PERSISTENT && !info.isReconnecting()) {
                        persistHandle(info);
                    }
                }
            } finally {
                lock.writeLock().unlock();
            }
        }
    
        private void persistHandle(HandleInfo info) {
            if (info.getType() != HandleType.PERSISTENT) {
                return;
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ntlmssp/av/AvPairTest.java

            int type = AvPair.MsvAvTimestamp;
            byte[] raw = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            AvPair avPair = new AvPair(type, raw);
    
            assertEquals(type, avPair.getType(), "Type should match the constructor argument.");
            assertArrayEquals(raw, avPair.getRaw(), "Raw data should match the constructor argument.");
    
            // Test with another type and empty raw data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbConstants.java

         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a server.
         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/dtyp/SecurityInfoTest.java

            Field[] fields = SecurityInfo.class.getDeclaredFields();
            Set<Integer> values = new HashSet<>();
    
            for (Field field : fields) {
                if (field.getType() == int.class) {
                    int value = field.getInt(null);
                    assertTrue(values.add(value), "Duplicate value found for field: " + field.getName());
                }
            }
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            rawData[17] = 0x02;
    
            AvSingleHost avSingleHost = new AvSingleHost(rawData);
    
            assertNotNull(avSingleHost);
            assertEquals(AvPair.MsvAvSingleHost, avSingleHost.getType());
            assertArrayEquals(rawData, avSingleHost.getRaw());
        }
    
        /**
         * Test constructor AvSingleHost(Configuration cfg).
         * Should use the machine ID from the configuration.
         */
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/ntlmssp/av/AvTimestampTest.java

            SMBUtil.writeInt8(1234567890L, rawBytes, 0); // Example timestamp
            AvTimestamp avTimestamp = new AvTimestamp(rawBytes);
    
            assertNotNull(avTimestamp);
            assertEquals(AvPair.MsvAvTimestamp, avTimestamp.getType());
            assertArrayEquals(rawBytes, avTimestamp.getRaw());
        }
    
        /**
         * Test constructor with long timestamp.
         */
        @Test
        public void testConstructorWithLongTimestamp() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.8K bytes
    - Viewed (0)
Back to top