- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 36 for setCredentials (0.06 sec)
-
src/main/java/jcifs/CIFSContext.java
*/ SidResolver getSIDResolver(); /** * Get the credentials associated with this context * * @return the used credentials */ Credentials getCredentials(); /** * Get a URL stream handler for SMB URLs * * @return an URL handler using this context */ URLStreamHandler getUrlHandler(); /**
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/SimpleMemoryManagementTest.java
mockCredentialsInternal = Mockito.mock(CredentialsInternal.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 5.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
mockCredentialsInternal = Mockito.mock(CredentialsInternal.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); Mockito.when(mockCredentials.unwrap(Mockito.any())).thenReturn(mockCredentialsInternal); Mockito.when(mockCredentialsInternal.clone()).thenReturn(mockCredentialsInternal);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
return null; // not used } }; @BeforeEach void setup() { when(ctx.getConfig()).thenReturn(config); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getNameServiceClient()).thenReturn(nsc); } private static URL smbUrl(String spec) { try { return new URL(null, spec, SMB_HANDLER);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpURLConnection.java
message.setFlag(NtlmFlags.NTLMSSP_REQUEST_TARGET, true); } } else if (this.transportContext.getCredentials() instanceof NtlmPasswordAuthentication) { final NtlmPasswordAuthentication npa = (NtlmPasswordAuthentication) this.transportContext.getCredentials(); String domain = npa.getUserDomain(); String user = !npa.isAnonymous() ? npa.getUsername() : null;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 25.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
// Base context configuration - always needed when(cifsContext.getConfig()).thenReturn(configuration); // Context and credentials wiring - used by most tests when(cifsContext.getCredentials()).thenReturn(credentials); when(credentials.unwrap(CredentialsInternal.class)).thenReturn(credentialsInternal); when(credentialsInternal.clone()).thenReturn(credentialsInternal);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java
NtlmPasswordAuthentication creds = new NtlmPasswordAuthentication( new BaseContext(new PropertyConfiguration(System.getProperties())), "domain", "user", "password"); when(mockCifsContext.getCredentials()).thenReturn(creds); when(mockCifsContext.getConfig()).thenReturn(new PropertyConfiguration(System.getProperties())); when(mockCifsContext.getNameServiceClient()).thenReturn(mockNameServiceClient);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 12.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTransportPoolImplTest.java
pool = new SmbTransportPoolImpl(); // Setup default mock behaviors when(ctx.getConfig()).thenReturn(config); when(ctx.getNameServiceClient()).thenReturn(nameSvc); when(ctx.getCredentials()).thenReturn(creds); when(ctx.getTransportPool()).thenReturn(pool); // Default config values when(config.getLocalAddr()).thenReturn(null); when(config.getLocalPort()).thenReturn(0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 19.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/CriticalPerformanceTest.java
mockConfig = Mockito.mock(Configuration.class); mockCredentials = Mockito.mock(Credentials.class); Mockito.when(mockContext.getConfig()).thenReturn(mockConfig); Mockito.when(mockContext.getCredentials()).thenReturn(mockCredentials); // Mock CredentialsInternal for session tests jcifs.smb.CredentialsInternal mockCredentialsInternal = Mockito.mock(jcifs.smb.CredentialsInternal.class);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 15.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeConnectionTest.java
when(config.getMaxRequestRetries()).thenReturn(2); when(config.isTraceResourceUsage()).thenReturn(false); // Mock credentials to avoid NullPointerException when(ctx.getCredentials()).thenReturn(credentials); when(credentials.getUserDomain()).thenReturn("DOMAIN"); // Mock DFS resolver when(ctx.getDfs()).thenReturn(dfsResolver); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 13K bytes - Viewed (0)