- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getRemoteUser (0.08 sec)
-
src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java
NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, null); // getRemoteUser() will throw NPE when trying to call getName() on null principal assertThrows(NullPointerException.class, () -> request.getRemoteUser()); assertNull(request.getUserPrincipal()); assertEquals("NTLM", request.getAuthType()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
// Act: Call the method under test String actualUserName = ntlmRequest.getRemoteUser(); // Assert: Verify that the returned user name is the expected one assertEquals(expectedUserName, actualUserName, "getRemoteUser should return the principal's name."); } /** * Test method for {@link NtlmHttpServletRequest#getUserPrincipal()}.
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 04:51:33 UTC 2025 - 2.7K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmHttpServletRequest.java
Principal principal; NtlmHttpServletRequest(final HttpServletRequest req, final Principal principal) { super(req); this.principal = principal; } @Override public String getRemoteUser() { return this.principal.getName(); } @Override public Principal getUserPrincipal() { return this.principal; } @Override public String getAuthType() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmHttpServletRequest.java
Principal principal; NtlmHttpServletRequest(final HttpServletRequest req, final Principal principal) { super(req); this.principal = principal; } @Override public String getRemoteUser() { return principal.getName(); } @Override public Principal getUserPrincipal() { return principal; } @Override public String getAuthType() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 1.5K bytes - Viewed (0)