- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for resolveSids (2.77 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/SidResolver.java
* methods. * @throws CIFSException if there is an error resolving the SIDs */ void resolveSids(CIFSContext tc, String authorityServerName, SID[] sids) throws CIFSException; /** * Resolve part of an array of SIDs using a cache and at most one MSRPC request. * * @param tc the CIFS context to use
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 5.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbFile.java
return new SmbFileOutputStream(this); } private void processAces(final ACE[] aces, final boolean resolveSids) throws IOException { final String server = getServerWithDfs(); int ai; if (resolveSids) { final SID[] sids = new SID[aces.length]; final String[] names = null; for (ai = 0; ai < aces.length; ai++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 112.2K 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/SmbFile.java
return new SmbRandomAccessFile(this, mode, sharing, false); } private void processAces(final ACE[] aces, final boolean resolveSids) throws IOException { String server = this.fileLocator.getServerWithDfs(); int ai; if (resolveSids) { if (this.fileLocator.getDfsPath() == null && this.fileLocator.getPort() != -1) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 103.2K bytes - Viewed (0)