Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readSid (0.18 sec)

  1. src/main/java/jcifs/pac/PacLogonInfo.java

                        extraSidAtts[i] = new PacSidAttributes(sid, attributes[i]);
                    }
                }
    
                // ID for resource domain (used with relative IDs to get SIDs)
                SID resourceDomainId = null;
                if (resourceDomainIdPointer != 0) {
                    resourceDomainId = pacStream.readSid();
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            // RID = 0x12345678 (305419896 in decimal, little-endian)
            byte[] data = new byte[] { 0x78, 0x56, 0x34, 0x12 };
            PacDataInputStream pdis = createInputStream(data);
            SID sid = pdis.readId();
            // The readId method creates a SID with authority 5 and the RID value
            // Expected format: S-1-5-305419896
            String sidString = sid.toString();
            assertNotNull(sidString);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/pac/PacDataInputStream.java

         * @return the SID object
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if the SID data is invalid
         */
        public SID readSid() throws IOException, PACDecodingException {
            final int sidSize = readInt();
            final byte[] bytes = new byte[8 + sidSize * 4];
            readFully(bytes);
            return new SID(bytes, 0);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacLogonInfoTest.java

            DataOutputStream dos = new DataOutputStream(baos);
    
            // Write a RID (4 bytes) for readId() method
            writeLittleEndianInt(dos, 1000);
    
            ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray());
            PacDataInputStream pacStream = new PacDataInputStream(bais);
    
            SID id = pacStream.readId();
            assertNotNull(id);
            // The RID should be incorporated into the SID
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            doAnswer(new Answer<Void>() {
                @Override
                public Void answer(InvocationOnMock invocation) throws Throwable {
                    SmbComReadAndX readCmd = invocation.getArgument(0);
                    SmbComReadAndXResponse response = invocation.getArgument(1);
                    response.dataLength = 1;
                    // The response buffer points to the internal tmp buffer
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
Back to top