- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 37 for ANONYMOUS (2.1 sec)
-
src/main/java/jcifs/smb/AuthenticationProvider.java
* scattered authentication implementations. */ public interface AuthenticationProvider { /** * Authentication type enumeration */ enum AuthType { NTLM, KERBEROS, SPNEGO, GUEST, ANONYMOUS } /** * Gets the authentication type * * @return the authentication type */ AuthType getAuthType(); /** * Authenticates using the provided context *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 3.9K bytes - Viewed (1) -
src/test/java/jcifs/CredentialsTest.java
String result = mockCredentials.getUserDomain(); // Then assertEquals(domain, result); verify(mockCredentials).getUserDomain(); } @Test @DisplayName("Should check for anonymous credentials") void testIsAnonymous() { // Given when(mockCredentials.isAnonymous()).thenReturn(true); // When boolean isAnonymous = mockCredentials.isAnonymous();
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 2.5K 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 = trans.getSmbSession(this.ctx.withAnonymousCredentials(), treesess.getTargetHost(), treesess.getTargetDomain())
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 30.4K bytes - Viewed (1) -
src/main/java/jcifs/CIFSContext.java
* * @return a child context using the configured default credentials */ CIFSContext withDefaultCredentials(); /** * Create a child context with anonymous credentials * * @return a child context using anonymous credentials */ CIFSContext withAnonymousCredentials(); /** * Create a child context with guest credentials *Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/RequestWithFileIdTest.java
request.setFileId(secondFileId); request.setFileId(testFileId); }, "Should handle multiple setFileId calls"); } @Test @DisplayName("Should test interface with anonymous implementation") void testAnonymousImplementation() { // Given byte[] capturedFileId = new byte[1]; RequestWithFileId anonymousImpl = new RequestWithFileId() {
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java
assertArrayEquals(blob, resp.getBlob(), "Security blob should match"); assertEquals(sessionFlags, resp.getSessionFlags(), "Session flags should decode"); assertTrue(resp.isLoggedInAsGuest(), "Guest/anonymous should be detected"); // prepare should propagate session id when received CIFSContext mockCtx = mock(CIFSContext.class); when(mockCtx.getConfig()).thenReturn(mock(Configuration.class));
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.7K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/InfoTest.java
transactionMock = mock(SmbComTransactionResponse.class); } @Test void testSmbComQueryInformationResponseGetters() throws Exception { // The constructor is package‑private; use an anonymous subclass SmbComQueryInformationResponse resp = new SmbComQueryInformationResponse(1000L) { }; java.lang.reflect.Field fileAttr = SmbComQueryInformationResponse.class.getDeclaredField("fileAttributes");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SessionSetupHandlerTest.java
import org.mockito.Mock; import org.mockito.junit.jupiter.MockitoExtension; @ExtendWith(MockitoExtension.class) class SessionSetupHandlerTest { // Provide two implementations: an anonymous class and a Mockito mock static Stream<Arguments> implementations() { SessionSetupHandler anon = new SessionSetupHandler() { // no methods to implement (marker interface) };Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
@Test @DisplayName("isAnonymous and isGuest are always false") void testIsAnonymousAndGuestFalse() { JAASAuthenticator auth = new JAASAuthenticator(); // JAAS-based authenticator should never be anonymous or guest assertFalse(auth.isAnonymous()); assertFalse(auth.isGuest()); } @ParameterizedTest @EnumSource(SubjectVariant.class)Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 7.1K bytes - Viewed (0)