Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 2,490 for context (0.07 seconds)

  1. internal/kms/context.go

    package kms
    
    import (
    	"bytes"
    	"sort"
    	"unicode/utf8"
    )
    
    // Context is a set of key-value pairs that
    // are associated with a generate data encryption
    // key (DEK).
    //
    // A KMS implementation may bind the context to the
    // generated DEK such that the same context must be
    // provided when decrypting an encrypted DEK.
    type Context map[string]string
    
    // MarshalText returns a canonical text representation of
    Created: 2026-04-05 19:28
    - Last Modified: 2022-01-02 17:15
    - 6K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                    testEncryptionKey, testDecryptionKey);
    
            // When/Then - Multiple closes should be safe
            assertDoesNotThrow(() -> {
                context.close();
                context.close();
                context.close();
            });
    
            assertTrue(context.isClosed());
        }
    
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-31 08:00
    - 44.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/CIFSContext.java

        CIFSContext withDefaultCredentials();
    
        /**
         * Create a child context with anonymous credentials
         *
         * @return a child context using anonymous credentials
         */
        CIFSContext withAnonymousCredentials();
    
        /**
         * Create a child context with guest credentials
         *
         * @return a child context using guest credentials
         */
        CIFSContext withGuestCrendentials();
    
        /**
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-16 01:32
    - 4.9K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/PreauthIntegrityService.java

                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
            try {
                byte[] newHash = calculateHash(context.getCurrentHash(), messageData, context.getHashAlgorithm());
                context.updateHash(newHash);
    
                log.debug("Updated preauth hash for session {} with {} bytes of data", sessionId, messageData.length);
    Created: 2026-04-05 00:10
    - Last Modified: 2025-08-31 08:00
    - 12.1K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            assertActivation(false, newExistsProfile("someFile.txt"), context);
            assertActivation(false, newExistsProfile("${project.basedir}/someFile.txt"), context);
    
            assertActivation(false, newMissingProfile(null), context);
            assertActivation(true, newMissingProfile("someFile.txt"), context);
            assertActivation(true, newMissingProfile("${project.basedir}/someFile.txt"), context);
        }
    
    Created: 2026-04-05 03:35
    - Last Modified: 2025-01-10 07:09
    - 6.2K bytes
    - Click Count (0)
  6. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/HelpTest.java

        }
    
        @Test
        void testHelpLogsMessages() throws Exception {
            UpgradeContext context = createMockContext();
    
            help.execute(context);
    
            // Verify that logger.info was called multiple times
            // We can't easily verify the exact content without capturing the logger output,
            // but we can verify that the method executes without errors
    Created: 2026-04-05 03:35
    - Last Modified: 2025-08-29 12:46
    - 3.4K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/query/FuzzyQueryCommandTest.java

            QueryBuilder result = fuzzyQueryCommand.convertFuzzyQuery(context, fuzzyQuery, 1.0f);
            assertNotNull(result);
    
        }
    
        // Test with various field names
        @Test
        public void test_convertFuzzyQuery_withVariousFields() {
            QueryContext context = new QueryContext("test", false);
            String[] fields = { "title", "content", "url", "site", "host", "mimetype" };
    
    Created: 2026-03-31 13:07
    - Last Modified: 2026-03-13 23:01
    - 9.7K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java

        /**
         * Test convertWithFieldCheck() adds query text to context.
         */
        @Test
        public void test_convertWithFieldCheck_addsToContext() {
            FessConfig fessConfig = ComponentUtil.getFessConfig();
            QueryContext context = new QueryContext("test", true);
    
            String queryText = "search term";
            queryCommand.convertWithFieldCheck(fessConfig, context, "title", queryText, 1.0f,
    Created: 2026-03-31 13:07
    - Last Modified: 2026-03-13 23:01
    - 12.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

         *
         * @param context the query context
         * @param termQuery the term query to convert
         * @param boost the boost value to apply
         * @return the converted QueryBuilder
         */
        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
            final String field = getSearchField(context.getDefaultField(), termQuery.getTerm().field());
    Created: 2026-03-31 13:07
    - Last Modified: 2025-11-28 16:29
    - 13.6K bytes
    - Click Count (0)
  10. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java

                String result = upgradeGoal.testDoUpgradeLogic(context, "4.0.0");
    
                assertEquals("4.0.0", result);
            }
    
            @Test
            @DisplayName("should prioritize explicit model over --all option")
            void shouldPrioritizeExplicitModelOverAllOption() {
                UpgradeContext context =
    Created: 2026-04-05 03:35
    - Last Modified: 2025-11-18 18:03
    - 13.7K bytes
    - Click Count (0)
Back to Top