- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 225 for testuser (0.07 sec)
-
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTimingAttackTest.java
for (int i = 0; i < 100; i++) { NtlmPasswordAuthenticator auth1 = new NtlmPasswordAuthenticator("testdomain", "testuser", "password123"); NtlmPasswordAuthenticator auth2 = new NtlmPasswordAuthenticator("testdomain", "testuser", "password124"); auth1.equals(auth2); } } /** * Test that password comparison is constant-time by comparing execution times
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.2K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
* Verifies that the method returns the name of the principal. */ @Test void testGetRemoteUser() { // Arrange: Define the expected user name from the principal String expectedUserName = "testUser"; when(mockPrincipal.getName()).thenReturn(expectedUserName); // Act: Call the method under test String actualUserName = ntlmRequest.getRemoteUser();Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbOperationExceptionTest.java
exception.withContext("path", "/share/file.txt").withContext("user", "testuser"); // Then Map<String, Object> context = exception.getContext(); assertEquals("server.example.com", context.get("host")); assertEquals(445, context.get("port")); assertEquals("/share/file.txt", context.get("path")); assertEquals("testuser", context.get("user")); } @Test
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbSessionTest.java
private MockedStatic<SmbTransport> smbtStatic; @BeforeEach void setUp() throws Exception { // Create a real NtlmPasswordAuthentication instance auth = new NtlmPasswordAuthentication("TESTDOMAIN", "testuser", "testpass"); // Initialize ServerData to avoid NullPointerException SmbTransport.ServerData serverData = transport.new ServerData();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/config/DelegatingConfigurationTest.java
when(mockDelegate.getNetbiosHostname()).thenReturn("TESTHOST"); when(mockDelegate.getDefaultDomain()).thenReturn("WORKGROUP"); when(mockDelegate.getDefaultUsername()).thenReturn("testuser"); when(mockDelegate.getDefaultPassword()).thenReturn("testpass"); when(mockDelegate.getNativeLanman()).thenReturn("jCIFS"); // When
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/NtlmContextTest.java
@ExtendWith(MockitoExtension.class) class NtlmContextTest { @Mock private NtlmPasswordAuthentication mockAuth; private final String domain = "TEST_DOMAIN"; private final String username = "testUser"; private final String password = "testPassword"; private final String workstation = "TEST_WORKSTATION"; @BeforeEach void setUp() { // MockitoExtension handles mock initializationRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
assertTrue(rateLimiter.checkAttempt("user1", "192.168.1.1"), "After success should be allowed"); } @Test public void testAccountLockout() throws Exception { String username = "testuser"; String ip = "192.168.1.2"; // First attempts should be allowed assertTrue(rateLimiter.checkAttempt(username, ip)); rateLimiter.recordFailure(username, ip);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0) -
src/test/java/jcifs/pac/PacLogonInfoTest.java
* Tests the parsing and data extraction from PAC Logon Info structures. */ class PacLogonInfoTest { private static final long TEST_FILETIME = 130640000000000000L; private static final String TEST_USERNAME = "testuser"; private static final String TEST_DOMAIN = "TESTDOMAIN"; private static final String TEST_SERVER = "SERVER01"; private SID domainSid; private SID userSid; @BeforeEachRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/context/BaseContextTest.java
void testConstructorWithCredentials() throws CIFSException { // Given Configuration configWithCreds = mock(Configuration.class); when(configWithCreds.getDefaultUsername()).thenReturn("testuser"); when(configWithCreds.getDefaultPassword()).thenReturn("testpass"); when(configWithCreds.getDefaultDomain()).thenReturn("TESTDOMAIN"); when(configWithCreds.getBufferCacheSize()).thenReturn(16);
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 15.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/FessUser.java
import java.io.Serializable; /** * Interface representing a Fess user with authentication and authorization information. * Provides access to user name, roles, groups, and permissions. */ public interface FessUser extends Serializable { /** * Gets the user's display name. * @return The user's name. */ String getName(); /** * Gets the user's assigned role names.Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 1.8K bytes - Viewed (0)