Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for IllegalStateException (0.42 sec)

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

            // Close the authenticator
            auth.close();
    
            // All these operations should throw IllegalStateException
            assertThrows(IllegalStateException.class, () -> auth.getPassword());
            assertThrows(IllegalStateException.class, () -> auth.getPasswordAsCharArray());
            assertThrows(IllegalStateException.class, () -> {
                // This would normally be called during authentication
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

         */
        private Mac createMacInstance() throws GeneralSecurityException {
            if (this.closed) {
                throw new IllegalStateException("SigningDigest is closed");
            }
            if (this.signingKey == null) {
                throw new IllegalStateException("Signing key has been wiped");
            }
            Mac m;
            if (this.provider != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/BufferCache.java

         * Gets a buffer from the cache or creates a new one if the cache is empty.
         *
         * Performance: O(1) operation using concurrent queue
         *
         * @return a byte buffer for SMB operations
         * @throws IllegalStateException if buffer size exceeds maximum allowed
         */
        static public byte[] getBuffer() {
            // Try to get from cache first - O(1) operation
            byte[] buf = bufferQueue.poll();
            if (buf != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/SecureCredentialStorageTest.java

            // Operations should fail after destroy
            assertThrows(IllegalStateException.class, () -> {
                storage.encryptCredentials(plaintext);
            }, "Should throw IllegalStateException after destroy");
    
            assertThrows(IllegalStateException.class, () -> {
                storage.decryptCredentials(encrypted);
            }, "Should throw IllegalStateException after destroy");
    
            // Clean up
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/rdma/RdmaMemoryRegion.java

            this.valid = true;
        }
    
        /**
         * Get the underlying buffer
         *
         * @return memory buffer
         * @throws IllegalStateException if memory region has been invalidated
         */
        public ByteBuffer getBuffer() {
            if (!valid) {
                throw new IllegalStateException("Memory region invalidated");
            }
            return buffer;
        }
    
        /**
         * Get local memory key
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  6. okhttp-sse/src/main/kotlin/okhttp3/sse/internal/RealEventSource.kt

            listener.onFailure(this, null, response)
            return
          }
    
          val body = response.body
    
          if (!body.isEventStream()) {
            listener.onFailure(
              this,
              IllegalStateException("Invalid content-type: ${body.contentType()}"),
              response,
            )
            return
          }
    
          // This is a long-lived response. Cancel full-call timeouts.
          call?.timeout()?.cancel()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  7. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceFactoryTest.java

              future.completeExceptionally(e);
            }
          }
    
          @Override
          public void onClosed(@NotNull EventSource eventSource) {
            future.completeExceptionally(new IllegalStateException("closed"));
          }
    
          @Override
          public void onFailure(@NotNull EventSource eventSource, @Nullable Throwable t, @Nullable Response response) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:47:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/util/ResourceManagerTest.java

            ResourceManager.ManagedResource<TestResource> managed = resourceManager.manage(resource);
    
            managed.close();
            assertTrue(resource.isClosed());
    
            assertThrows(IllegalStateException.class, managed::get);
        }
    
        @Test
        @DisplayName("Test resource unregistration")
        void testResourceUnregistration() {
            TestResource resource = new TestResource("test5");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. fess-crawler/src/test/java/org/codelibs/fess/crawler/exception/CrawlerSystemExceptionTest.java

        }
    
        /**
         * Test constructor with null message and valid cause
         */
        public void test_constructor_withNullMessageAndValidCause() {
            Exception cause = new IllegalStateException("State error");
            CrawlerSystemException exception = new CrawlerSystemException(null, cause);
    
            assertNotNull(exception);
            assertNull(exception.getMessage());
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Wed Sep 03 14:42:53 UTC 2025
    - 20K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            if (keyManager != null) {
                String encKeyId = sessionId + "-enc";
                byte[] key = keyManager.getRawKey(encKeyId);
                if (key == null) {
                    throw new IllegalStateException("Encryption key not found in SecureKeyManager");
                }
                return key;
            }
            return this.encryptionKey;
        }
    
        private byte[] getDecryptionKey() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
Back to top