Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 558 for isInvalid (0.05 sec)

  1. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            return new SmbFileInputStream(mockFile, mockTree, mockHandle);
        }
    
        @BeforeEach
        void setUp() throws Exception {
            // Common, safe defaults for collaborators
            when(mockHandle.isValid()).thenReturn(true);
            when(mockHandle.acquire()).thenReturn(mockHandle);
            when(mockHandle.getTree()).thenReturn(mockTree);
            when(mockHandle.getFileId()).thenReturn(new byte[16]);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/exception/InvalidAccessTokenException.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.exception;
    
    /**
     * Exception thrown when an invalid access token is encountered.
     * This exception is typically used in authentication and authorization contexts
     * where a provided access token is invalid, expired, or malformed.
     */
    public class InvalidAccessTokenException extends FessSystemException {
    
        /** Serial version UID for serialization */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/InputValidator.java

                throw new IllegalArgumentException("Username contains invalid characters: " + username);
            }
        }
    
        /**
         * Validates domain name
         *
         * @param domain the domain to validate
         * @throws IllegalArgumentException if domain is invalid
         */
        public static void validateDomain(String domain) {
            if (domain == null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

         */
        @Test
        public void testReleaseBufferValidation() {
            // Given - Various invalid buffers
            byte[] nullBuffer = null;
            byte[] wrongSizeBuffer = new byte[100]; // Wrong size
            byte[] correctBuffer = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE];
    
            // When/Then - Should handle invalid buffers gracefully
            assertDoesNotThrow(() -> {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbFileOutputStreamTest.java

            when(mockFileHandle.isValid()).thenReturn(false);
            assertFalse(outputStream.isOpen());
        }
    
        @Test
        void testWriteAfterClose() throws IOException, CIFSException {
            // Given
            when(mockTreeHandle.isSMB2()).thenReturn(true);
            when(mockTreeHandle.getSendBufferSize()).thenReturn(65536);
            when(mockFileHandle.isValid()).thenReturn(true);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  6. fess-crawler/src/test/java/org/codelibs/fess/crawler/CrawlerThreadTest.java

            final java.lang.reflect.Method method = CrawlerThread.class.getDeclaredMethod("isValid", UrlQueue.class);
            method.setAccessible(true);
            final boolean result = (boolean) method.invoke(crawlerThread, urlQueue);
    
            assertTrue(result);
        }
    
        /**
         * Test isValid method with a null URL queue.
         */
        public void test_isValid_nullUrlQueue() throws Exception {
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/util/ServerResponseValidator.java

                log.warn("Invalid SMB protocol ID: 0x{}", Integer.toHexString(protocolId));
                throw new SmbException("Invalid SMB protocol identifier");
            }
    
            // Validate command is in valid range
            if (command < 0 || command > 255) {
                failedValidations.incrementAndGet();
                throw new SmbException("Invalid command code: " + command);
            }
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/config/MultiChannelConfigurationTest.java

            Properties props = new Properties();
    
            // Invalid boolean should default to true
            props.setProperty("jcifs.smb.client.useMultiChannel", "invalid");
            PropertyConfiguration config = new PropertyConfiguration(props);
            assertTrue(config.isUseMultiChannel());
    
            // Invalid integer should use default
            props.clear();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/pac/kerberos/KerberosAuthDataTest.java

        }
    
        /**
         * Test parsing of {@link KerberosConstants#AUTH_DATA_PAC} with an invalid token.
         * Expects a {@link PACDecodingException} to be thrown.
         */
        @Test
        void testParseAuthDataPacWithInvalidToken() {
            // GIVEN an invalid token for AUTH_DATA_PAC
            byte[] invalidToken = "invalid-pac-token".getBytes();
    
            // WHEN parsing the auth data
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/config/PropertyConfiguration.java

                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
            }
    
            value = props.getProperty("jcifs.smb.client.soTimeout");
            if (value != null) {
                try {
                    this.smbSocketTimeout = Integer.parseInt(value);
                } catch (NumberFormatException e) {
                    // Invalid value ignored
                }
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:49:49 UTC 2025
    - 13.3K bytes
    - Viewed (0)
Back to top