- Sort Score
- Num 10 results
- Language All
Results 1 - 4 of 4 for getUserPrincipal (0.18 seconds)
-
src/test/java/jcifs/http/NtlmHttpServletRequestTest.java
} /** * Test method for {@link NtlmHttpServletRequest#getUserPrincipal()}. * Verifies that the method returns the correct principal object. */ @Test void testGetUserPrincipal() { // Act: Call the method under test Principal actualPrincipal = ntlmRequest.getUserPrincipal();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 2.7K bytes - Click Count (0) -
src/main/java/jcifs/http/NtlmHttpServletRequest.java
super(req); this.principal = principal; } @Override public String getRemoteUser() { return this.principal.getName(); } @Override public Principal getUserPrincipal() { return this.principal; } @Override public String getAuthType() { return "NTLM"; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.5K bytes - Click Count (0) -
src/main/java/jcifs/smb1/http/NtlmHttpServletRequest.java
super(req); this.principal = principal; } @Override public String getRemoteUser() { return principal.getName(); } @Override public Principal getUserPrincipal() { return principal; } @Override public String getAuthType() { return "NTLM"; }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 1.5K bytes - Click Count (0) -
src/test/java/jcifs/smb1/http/NtlmHttpServletRequestTest.java
NtlmHttpServletRequest request = new NtlmHttpServletRequest(mockRequest, mockPrincipal); assertEquals("user1", request.getRemoteUser()); assertSame(mockPrincipal, request.getUserPrincipal()); assertEquals("NTLM", request.getAuthType()); verify(mockPrincipal, times(1)).getName(); } @ParameterizedTest @ValueSource(strings = { "", " ", "unknown" })
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 04:51:33 GMT 2025 - 3.4K bytes - Click Count (0)