- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for resolveSids (0.07 sec)
-
src/test/java/jcifs/smb/SIDCacheImplTest.java
return null; }).when(cache).resolveSids0(any(), any(), any()); // Resolve first two entries cache.resolveSids(ctx, null, arr, 0, 2); // Verify resolveSids0 called exactly once with the two SIDs needing resolution ArgumentCaptor<SID[]> captor = ArgumentCaptor.forClass(SID[].class); verify(cache, times(1)).resolveSids0(isNull(), same(ctx), captor.capture());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/SidResolverTest.java
} // Test resolveSids with array @Test void testResolveSids_Success() throws CIFSException { doNothing().when(sidResolver).resolveSids(any(CIFSContext.class), anyString(), any(SID[].class)); assertDoesNotThrow(() -> sidResolver.resolveSids(mockContext, testServerName, testSids)); verify(sidResolver, times(1)).resolveSids(mockContext, testServerName, testSids); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SIDCacheImpl.java
/** * Constructs a SID cache implementation. * * @param baseContext the CIFS context for this cache */ public SIDCacheImpl(final CIFSContext baseContext) { } void resolveSids(final DcerpcHandle handle, final LsaPolicyHandle policyHandle, final jcifs.SID[] sids) throws IOException { final MsrpcLookupSids rpc = new MsrpcLookupSids(policyHandle, sids); handle.sendrecv(rpc);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Mon Aug 25 14:34:10 UTC 2025 - 13.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
// Act sid.resolve("server.example", mockCtx); // Assert: resolver.resolveSids called with this SID ArgumentCaptor<jcifs.SID[]> captor = ArgumentCaptor.forClass(jcifs.SID[].class); verify(mockResolver, times(1)).resolveSids(same(mockCtx), eq("server.example"), captor.capture()); assertSame(sid, captor.getValue()[0]); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SID.java
CREATOR_OWNER = new SID("S-1-3-0"); SYSTEM = new SID("S-1-5-18"); } catch (final SmbException se) {} } static Map sid_cache = new HashMap(); static void resolveSids(final DcerpcHandle handle, final LsaPolicyHandle policyHandle, final SID[] sids) throws IOException { final MsrpcLookupSids rpc = new MsrpcLookupSids(policyHandle, sids); handle.sendrecv(rpc);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
src/main/java/jcifs/SmbResource.java
* * @param resolveSids * Attempt to resolve the SIDs within each ACE form * their numeric representation to their corresponding account names. * @return array of ACEs * @throws IOException if an I/O error occurs */ ACE[] getSecurity(boolean resolveSids) throws IOException; /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 28K bytes - Viewed (1) -
src/test/java/jcifs/SIDTest.java
String server = "myserver"; sid.resolve(server, mockContext); ArgumentCaptor<jcifs.SID[]> sidArrayCaptor = ArgumentCaptor.forClass(jcifs.SID[].class); verify(mockResolver).resolveSids(eq(mockContext), eq(server), sidArrayCaptor.capture()); assertEquals(1, sidArrayCaptor.getValue().length); assertEquals(sid, sidArrayCaptor.getValue()[0]); } /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SID.java
*/ public void resolve(final String authorityServerName, final CIFSContext tc) throws IOException { final SID[] sids = new SID[1]; sids[0] = this; tc.getSIDResolver().resolveSids(tc, authorityServerName, sids); } void resolveWeak() { if (this.origin_server != null) { try { resolve(this.origin_server, this.origin_ctx);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0)