Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 440 for codes (0.24 sec)

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

     */
    
    package jcifs.smb;
    
    /**
     * The <code>SmbAuthException</code> encapsulates the variety of
     * authentication related error codes returned by an SMB server.
     * <p>
     * See <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for more information about
     * <code>SmbAuthException</code>.
     */
    
    public class SmbAuthException extends SmbException {
    
        /**
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/NtStatus.java

     */
    
    package jcifs.smb;
    
    /**
     * Interface defining NT status codes used in SMB protocol operations.
     * These status codes are returned by SMB servers to indicate the result
     * of requested operations. The codes follow the Windows NT status code format.
     */
    public interface NtStatus {
    
        /*
         * Don't bother to edit this. Everything within the interface
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 14.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        /** Whether to force Unicode usage */
        boolean FORCE_UNICODE = Config.getBoolean("jcifs.smb1.smb.client.useUnicode", false);
        /** Whether to use NT status codes */
        boolean USE_NTSTATUS = Config.getBoolean("jcifs.smb1.smb.client.useNtStatus", true);
        /** Whether signing is preferred */
        boolean SIGNPREF = Config.getBoolean("jcifs.smb1.smb.client.signingPreferred", false);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbAuthException.java

     */
    
    package jcifs.smb1.smb1;
    
    /**
     * The <code>SmbAuthException</code> encapsulates the variety of
     * authentication related error codes returned by an SMB server.
     * <p>
     * See <a href="../../../authhandler.html">jCIFS Exceptions and NtlmAuthenticator</a> for more information about <code>SmbAuthException</code>.
     */
    
    public class SmbAuthException extends SmbException {
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbAuthExceptionTest.java

                    // Unknown code → hex string (uppercase)
                    Arguments.of(0xDEADBEEF, "0xDEADBEEF"));
        }
    
        @ParameterizedTest
        @MethodSource("errorCodes")
        void constructorInitialisesMessageAndStatus(int code, String expectedMsg) {
            SmbAuthException e = new SmbAuthException(code);
            assertEquals(expectedMsg, e.getMessage(), "message for code " + Integer.toHexString(code));
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbExceptionTest.java

                NtStatus.NT_STATUS_SHARING_VIOLATION, NtStatus.NT_STATUS_INVALID_PARAMETER })
        @DisplayName("Should handle various NT status codes")
        void testVariousNTStatusCodes(int ntStatus) {
            // When
            SmbException exception = new SmbException(ntStatus, false);
    
            // Then
            assertNotNull(exception);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

            verify(messageBlock).getCommand();
        }
    
        @Test
        @DisplayName("Test setCommand with various SMB command codes")
        void testSetCommandWithVariousCodes() {
            // Test common SMB command codes
            int[] commandCodes = { 0x00, 0x72, 0x73, 0x74, 0x75, 0xFF };
    
            for (int command : commandCodes) {
                doNothing().when(messageBlock).setCommand(command);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

        }
    
        @Test
        @DisplayName("Unknown DOS error code yields empty Optional")
        void testUnknownCode() {
            Optional<Integer> noMatch = findNtStatus(0xdeadbeef);
            assertFalse(noMatch.isPresent(), "Mapping for unknown code should be absent");
        }
    
        @Test
        @DisplayName("Mocked consumer receives correct NTSTATUS value")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            assertEquals(0x1, Smb2IoctlRequest.SMB2_O_IOCTL_IS_FSCTL);
        }
    
        @Test
        @DisplayName("Test configuration with different control codes")
        void testDifferentControlCodes() {
            setupMockConfig();
            // Test with different control codes
            int[] controlCodes = { Smb2IoctlRequest.FSCTL_PIPE_PEEK, Smb2IoctlRequest.FSCTL_PIPE_WAIT, Smb2IoctlRequest.FSCTL_PIPE_TRANSCEIVE,
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/SmbConstants.java

         * represents is a server.
         */
        int TYPE_SERVER = 0x04;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a share.
         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a named pipe.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 12.8K bytes
    - Viewed (0)
Back to top