- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for setCredentials (0.09 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/ApiExtractor.java
for (final Authentication authentication : siteCredentialList) { final AuthScope authScope = authentication.getAuthScope(); credentialsProvider.setCredentials(authScope, authentication.getCredentials()); final AuthScheme authScheme = authentication.getAuthScheme(); if (authScope.getHost() != null && authScheme != null) {
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 12.2K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextCredentialWrapperTest.java
// We can directly test getCredentials() to ensure it returns the initial credentials. assertEquals(mockCredentials, wrapper.getCredentials(), "Initial credentials should be set by constructor"); } @Test @DisplayName("Should return the credentials provided in the constructor") void testGetCredentials() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
} @Test void testGetCredentials() { // Test getCredentials() method Credentials mockCredentials = mock(Credentials.class); when(mockDelegate.getCredentials()).thenReturn(mockCredentials); assertEquals(mockCredentials, cifsContextWrapper.getCredentials()); verify(mockDelegate).getCredentials(); } @Test void testGetUrlHandler() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/CredentialsInternalTest.java
} // Exercise interaction with dependency for verification purposes // These methods do not throw and allow interaction checks. tc.getConfig(); tc.getCredentials(); // Minimal behavior: return a mock SSPContext with lenient stubbing SSPContext ctx = mock(SSPContext.class); lenient().when(ctx.isEstablished()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/opensearch/config/exentity/DataConfig.java
final AuthScheme authScheme = getAuthScheme(paramMap, webAuthName, scheme); final AuthScope authScope = getAuthScope(webAuthName, scheme, paramMap); final Credentials credentials = getCredentials(webAuthName, scheme, paramMap); basicAuthList.add(new AuthenticationImpl(authScope, credentials, authScheme)); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 18.6K bytes - Viewed (0) -
src/main/java/jcifs/smb/DfsImpl.java
} private Map<String, Map<String, CacheEntry<DfsReferralDataInternal>>> getTrustedDomains(final CIFSContext tf) throws SmbAuthException { if (tf.getConfig().isDfsDisabled() || tf.getCredentials().getUserDomain() == null || tf.getCredentials().getUserDomain().isEmpty()) { return null; } if (this._domains != null && System.currentTimeMillis() > this._domains.expiration) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 29.7K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTreeConnection.java
try (SmbSessionImpl treesess = t.getSession()) { if (treesess.getCredentials().isAnonymous() || treesess.getCredentials().isGuest()) { // refresh anonymous session or fallback to anonymous from guest login try (SmbSessionInternal s =
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K 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)