Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 111 - 120 of 148 for SmbException (0.09 seconds)

  1. src/main/java/jcifs/smb1/smb1/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 {
    
        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.3K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbOperationException.java

        }
    
        private long extractNtStatus(Throwable cause) {
            if (cause instanceof SmbException) {
                return ((SmbException) cause).getNtStatus();
            }
            return 0;
        }
    
        private String extractServerMessage(Throwable cause) {
            if (cause instanceof SmbException) {
                // Try to get server message from SMB exception
                return cause.getMessage();
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 16.5K bytes
    - Click Count (0)
  3. 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)
  4. src/main/java/jcifs/smb/DfsReferral.java

     * Thrown when a DFS referral is encountered during SMB operations.
     *
     * @author mbechler
     *
     *
     * <p>This class is intended for internal use.</p>
     */
    public class DfsReferral extends SmbException {
    
        /**
         *
         */
        private static final long serialVersionUID = 1486630733410281686L;
    
        /** The underlying DFS referral data */
        private final DfsReferralData data;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. 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>
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.5K bytes
    - Click Count (0)
  6. 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];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbAuthExceptionTest.java

            SmbAuthException ex = new SmbAuthException(errCode);
    
            // Assert: type, message derived from code, status mapping, and no cause
            assertNotNull(ex);
            assertTrue(ex instanceof SmbException);
            assertEquals(SmbException.getMessageByCode(errCode), ex.getMessage(), "message should reflect error code mapping");
            assertEquals(expectedStatus, ex.getNtStatus(), "status should map based on code");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            doReturn(mockTransport).when(poolSpy).getSmbTransport(eq(ctx), any(Address.class), anyInt(), eq(false), anyBoolean());
    
            // When/Then: Should throw SmbException
            SmbException ex = assertThrows(SmbException.class, () -> poolSpy.getChallenge(ctx, address));
            assertTrue(ex.getMessage().contains("Connection failed"));
        }
    
        @Test
        @DisplayName("Should perform logon to IPC$ share")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SmbEndOfFileException.java

     *
     * This exception is thrown during read operations when
     * attempting to read beyond the end of a file.
     *
     * @author mbechler
     */
    public class SmbEndOfFileException extends SmbException {
    
        /**
         *
         */
        private static final long serialVersionUID = 298752101881244000L;
    
        /**
         * Constructs an end-of-file exception.
         */
        public SmbEndOfFileException() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb/SMBSignatureValidationException.java

     * Indicates that the integrity of an SMB message could not be verified.
     *
     * @author mbechler
     *
     */
    public class SMBSignatureValidationException extends SmbException {
    
        /**
         * Default constructor for SMB signature validation exception.
         */
        public SMBSignatureValidationException() {
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 1.9K bytes
    - Click Count (0)
Back to Top