Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for 15221 (0.07 sec)

  1. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("unwrap returns this for assignable type; otherwise throws ClassCastException")
            void testUnwrap() throws Exception {
                SID sid = new SID("S-1-5-21-1");
                // Happy path
                assertSame(sid, sid.unwrap(SID.class));
                assertSame(sid, sid.unwrap(Object.class));
                // Invalid unwrap
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/ServerMessageBlockTest.java

            int len = smb.writeString(testString, buffer, 1);
            // When dstIndex=1 and headerStart=1, (1-1)%2=0, no alignment padding needed
            // Length is string bytes (15*2) + 2 null terminators = 32
            assertEquals(testString.length() * 2 + 2, len);
            String readString = smb.readString(buffer, 1);
            assertEquals(testString, readString);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            SMBUtil.writeInt4(0, testBuffer, 12); // SACL offset
            SMBUtil.writeInt4(0, testBuffer, 16); // DACL offset
    
            // Owner SID with 3 sub-authorities (S-1-5-21-X-Y-Z)
            testBuffer[20] = 0x01; // revision
            testBuffer[21] = 0x03; // sub-authority count
            testBuffer[22] = 0x00; // identifier authority
            testBuffer[23] = 0x00;
            testBuffer[24] = 0x00;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
Back to top