- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for isAnonymous (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/CredentialsTest.java
void testIsAnonymous() { // Given when(mockCredentials.isAnonymous()).thenReturn(true); // When boolean isAnonymous = mockCredentials.isAnonymous(); // Then assertTrue(isAnonymous); verify(mockCredentials).isAnonymous(); } @Test @DisplayName("Should check for guest credentials") void testIsGuest() {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
this.contextLifetime = time; } /** * {@inheritDoc} * * @see jcifs.smb.CredentialsInternal#isAnonymous() */ @Override public boolean isAnonymous() { return this.getSubject() == null && super.isAnonymous(); } /** * {@inheritDoc} *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 13.2K bytes - Click Count (0) -
src/main/java/jcifs/Credentials.java
*/ String getUserDomain(); /** * Check if these are anonymous credentials. * @return whether these are anonymous credentials */ boolean isAnonymous(); /** * Check if these are guest credentials. * @return whether these are guest credentials */ boolean isGuest();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.6K bytes - Click Count (0) -
src/test/java/jcifs/context/AbstractCIFSContextTest.java
} @Test void testHasDefaultCredentials_withNonAnonymous() { when(mockCredentials.isAnonymous()).thenReturn(false); assertTrue(context.hasDefaultCredentials()); } @Test void testHasDefaultCredentials_withAnonymous() { when(mockCredentials.isAnonymous()).thenReturn(true); assertFalse(context.hasDefaultCredentials()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
this.configuration = new StaticJAASConfiguration(properties); } /** * {@inheritDoc} * * @see jcifs.smb.Kerb5Authenticator#isAnonymous() */ @Override public boolean isAnonymous() { return false; } /** * {@inheritDoc} * * @see jcifs.smb.NtlmPasswordAuthenticator#isGuest() */ @Override
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 8.3K bytes - Click Count (1) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertTrue(guestAuth.isGuest()); assertFalse(guestAuth.isAnonymous()); // Test anonymous detection NtlmPasswordAuthenticator anonAuth = new NtlmPasswordAuthenticator("", new char[0]); assertTrue(anonAuth.isAnonymous()); assertFalse(anonAuth.isGuest()); // Test user authentication
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 23.3K bytes - Click Count (0) -
src/main/java/jcifs/context/AbstractCIFSContext.java
* * @see jcifs.CIFSContext#hasDefaultCredentials() */ @Override public boolean hasDefaultCredentials() { return this.getDefaultCredentials() != null && !this.getDefaultCredentials().isAnonymous(); } /** * Gets the default credentials for this context. * * @return the default credentials for this context */ protected abstract Credentials getDefaultCredentials();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
// no-op for tests } @Override public boolean isGuest() { return false; // not guest for test purposes } @Override public boolean isAnonymous() { return false; // not anonymous for test purposes } @Override public String getUserDomain() { return "TESTDOMAIN"; // test domain for test purposes }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
} @Test @DisplayName("shouldForceSigning depends on config, creds, and IPC") void testShouldForceSigning() { when(config.isIpcSigningEnforced()).thenReturn(true); when(creds.isAnonymous()).thenReturn(false); // Case 1: share is IPC$ -> IPC SmbResourceLocatorImpl ipc = locator("smb://server/IPC$/"); assertTrue(ipc.shouldForceSigning()); // Case 2: config disabledCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.6K bytes - Click Count (0) -
src/main/java/jcifs/smb/DfsImpl.java
final SmbTransportImpl transport = tf.getTransportPool() .getSmbTransport(tf, dr.getServer(), 0, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isSigningEnabled() && tf.getConfig().isIpcSigningEnforced()) .unwrap(SmbTransportImpl.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 29.7K bytes - Click Count (0)