Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 130 of 148 for SmbException (0.23 seconds)

  1. src/main/java/jcifs/smb/SmbUnsupportedOperationException.java

     * Indicates that the requested operation is not supported by the SMB server or protocol version.
     *
     * @author mbechler
     *
     */
    public class SmbUnsupportedOperationException extends SmbException {
    
        /**
         *
         */
        private static final long serialVersionUID = -5576981906065713710L;
    
        /**
         * Constructs a new SmbUnsupportedOperationException with a default message
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. 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)
  3. src/main/java/jcifs/smb/SmbPipeOutputStream.java

     *
     * @author mbechler
     */
    public class SmbPipeOutputStream extends SmbFileOutputStream {
    
        private final SmbPipeHandleImpl handle;
    
        /**
         * @param handle
         * @throws SmbException
         */
        SmbPipeOutputStream(final SmbPipeHandleImpl handle, final SmbTreeHandleImpl th) throws CIFSException {
            super(handle.getPipe(), th, null, 0, 0, 0);
            this.handle = handle;
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbAuthException.java

     * <p>
     * See <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for more information about
     * <code>SmbAuthException</code>.
     */
    
    public class SmbAuthException extends SmbException {
    
        /**
         *
         */
        private static final long serialVersionUID = -4248623847084793254L;
    
        SmbAuthException(final int errcode) {
            super(errcode, null);
        }
    
    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)
  5. src/main/java/jcifs/smb/DosFileFilter.java

         * specified the server may still return objects that are not directories).
         */
        @Override
        public boolean accept(final SmbFile file) throws SmbException {
            return (file.getAttributes() & this.attributes) != 0;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  6. 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"));
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.8K bytes
    - Click Count (0)
  7. src/main/java/jcifs/smb1/smb1/DosFileFilter.java

         * specified the server may still return objects that are not directories).
         */
        @Override
        public boolean accept(final SmbFile file) throws SmbException {
            return (file.getAttributes() & attributes) != 0;
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  8. 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());
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            // After closing the handle, further calls throw
            target.close();
            CIFSException e1 = assertThrows(SmbException.class, target::getInput);
            assertTrue(e1.getMessage().contains("Already closed"));
            CIFSException e2 = assertThrows(SmbException.class, target::getOutput);
            assertTrue(e2.getMessage().contains("Already closed"));
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SSPContext.java

         * @param token the input token bytes
         * @param off offset into the token array
         * @param len length of token data
         * @return result token
         * @throws SmbException if an SMB protocol error occurs
         * @throws CIFSException if a general CIFS error occurs
         */
        byte[] initSecContext(byte[] token, int off, int len) throws CIFSException;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.9K bytes
    - Click Count (0)
Back to Top