- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 150 for SmbException (0.06 sec)
-
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); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 31.5K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbPipeHandleImpl.java
} @Override public synchronized SmbFileHandleImpl ensureOpen() throws CIFSException { if (!this.open) { throw new SmbException("Pipe handle already closed"); } if (!isOpen()) { try (SmbTreeHandleImpl th = ensureTreeConnected()) { if (th.isSMB2()) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 10.2K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
assertFalse(file.exists(), "Non-existent file should not exist"); assertThrows(SmbException.class, () -> file.length(), "Getting length of non-existent file should throw exception"); assertThrows(SmbException.class, () -> file.getInputStream(), "Getting input stream of non-existent file should throw exception"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 56K bytes - Viewed (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()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14K bytes - Viewed (0) -
src/test/java/jcifs/smb/SIDTest.java
} @Test @DisplayName("Textual constructor invalid format throws SmbException") void testTextualConstructorInvalid() { // Arrange String bad = "S-1"; // fewer than 3 tokens // Act + Assert SmbException ex = assertThrows(SmbException.class, () -> new SID(bad)); assertTrue(ex.getMessage().contains("Bad textual SID format")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0) -
src/main/java/jcifs/smb/Kerb5Authenticator.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 13.2K bytes - Viewed (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); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 16K bytes - Viewed (0) -
src/main/java/jcifs/SmbTransportPool.java
* specified by the <code>UniAddress</code> parameter. If the credentials are * not accepted, an <code>SmbAuthException</code> will be thrown. If an error * occurs an <code>SmbException</code> will be thrown. If the credentials are * valid, the method will return without throwing an exception. See the * last <a href="../../../faq.html">FAQ</a> question. * <p>
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 7.5K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
* Returns the signing key for SMB signing. * * @param challenge the server challenge bytes * @return the signing key * @throws SmbException if an error occurs generating the signing key */ public byte[] getSigningKey(final byte[] challenge) throws SmbException { switch (LM_COMPATIBILITY) { case 0: case 1: case 2: final byte[] signingKey = new byte[40];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 26.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
@ParameterizedTest @NullAndEmptySource @DisplayName("treeConnectLogon: invalid logon share throws SmbException") void testTreeConnectLogonInvalid(String logonShare) { SmbSessionImpl session = spy(newSession()); when(configuration.getLogonShare()).thenReturn(logonShare); assertThrows(SmbException.class, session::treeConnectLogon); verify(session, never()).getSmbTree(anyString(), isNull()); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0)