- Sort Score
- Num 10 results
- Language All
Results 101 - 110 of 148 for SmbException (0.09 seconds)
-
src/test/java/jcifs/smb/SmbFileHandleImplTest.java
@Test @DisplayName("getFid/getFileId throw SmbException when invalid") void getters_throw_whenInvalid() { when(cfg.isTraceResourceUsage()).thenReturn(false); stubValidTree(1L, true, true); SmbFileHandleImpl h = new SmbFileHandleImpl(cfg, new byte[] { 0x01, 0x02 }, tree, "//x", 0, 0, 0, 0, 0L); // invalidate h.markClosed(); SmbException ex1 = assertThrows(SmbException.class, h::getFid);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.3K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbEnumerationUtilTest.java
// Arrange SmbFile parent = new SmbFile(url); // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> SmbEnumerationUtil.doShareEnum(parent, "*", 0, null, null)); // Assert message indicates which validation failed if (expectDirSlashMsg) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 17.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportPoolImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 33.4K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
* @param sourceIp the source IP address * @return true if attempt is allowed, false if rate limited * @throws SmbException if account is locked out */ public boolean checkAttempt(String username, String sourceIp) throws SmbException { if (closed.get()) { throw new IllegalStateException("Rate limiter is closed"); } // Check global rate limitCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/SID.java
* @param textual the textual representation of the SID * @throws SmbException if the textual format is invalid */ public SID(final String textual) throws SmbException { final StringTokenizer st = new StringTokenizer(textual, "-"); if (st.countTokens() < 3 || !st.nextToken().equals("S")) { // need S-N-M throw new SmbException("Bad textual SID format: " + textual); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 31.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SID.java
* @param textual the textual representation of the SID * @throws SmbException if the textual format is invalid */ public SID(final String textual) throws SmbException { final StringTokenizer st = new StringTokenizer(textual, "-"); if (st.countTokens() < 3 || !st.nextToken().equals("S")) { // need S-N-M throw new SmbException("Bad textual SID format: " + textual); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 16K bytes - Click Count (0) -
src/test/java/jcifs/smb/SIDCacheImplTest.java
rpc.domains.count = 0; rpc.domains.domains = new lsarpc.LsarTrustInformation[0]; return null; }).when(handle).sendrecv(any()); SmbException ex = assertThrows(SmbException.class, () -> cache.resolveSids(handle, policy, sids)); assertEquals(NtStatus.NT_STATUS_ACCESS_DENIED, ex.getNtStatus()); } @TestCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14K bytes - Click Count (0) -
src/test/java/jcifs/internal/dtyp/ACETest.java
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.ValueSource; import jcifs.smb.SID; import jcifs.smb.SmbException; /** * Test class for ACE (Access Control Entry) */ class ACETest { private ACE ace; private byte[] testBuffer; @BeforeEach void setUp() { ace = new ACE(); }
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.6K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
} @Override public SSPContext createContext(CIFSContext tc, String targetDomain, String host, byte[] initialToken, boolean doSigning) throws SmbException { // Not used within these tests throw new SmbException("not used in tests"); } @Override public Subject getSubject() { return null; // not relevant for renew() behavior }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/main/java/jcifs/smb/Kerb5Authenticator.java
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)