Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for setKey (0.05 sec)

  1. src/test/java/org/codelibs/core/crypto/CachedCipherTest.java

        }
    
        @Test
        public void testDifferentKeys() {
            final CachedCipher cipher1 = new CachedCipher();
            cipher1.setKey("key1");
    
            final CachedCipher cipher2 = new CachedCipher();
            cipher2.setKey("key2");
    
            final String original = "Hello World";
            final String encrypted1 = cipher1.encryptText(original);
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                when(mockReferralData.getKey()).thenReturn(key);
                doNothing().when(mockReferralData).setKey(key);
    
                mockReferralData.setKey(key);
                String retrievedKey = mockReferralData.getKey();
    
                assertEquals(key, retrievedKey);
                verify(mockReferralData, times(1)).setKey(key);
                verify(mockReferralData, times(1)).getKey();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java

            }
    
            @Test
            @DisplayName("Should get and set key")
            void testKey() {
                assertNull(referralData.getKey());
                referralData.setKey("cache-key-123");
                assertEquals("cache-key-123", referralData.getKey());
            }
    
            @Test
            @DisplayName("Should get server")
            void testGetServer() {
                assertNull(referralData.getServer());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/crypto/CachedCipher.java

     * cipher.setKey("mySecretKey");
     *
     * // Encrypt text
     * String encrypted = cipher.encryptText("Hello World");
     *
     * // Decrypt text
     * String decrypted = cipher.decryptText(encrypted);
     *
     * // For AES encryption
     * CachedCipher aesCipher = new CachedCipher();
     * aesCipher.setAlgorithm("AES");
     * aesCipher.setTransformation("AES");
     * aesCipher.setKey("0123456789abcdef"); // 16-byte key for AES-128
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/dfs/DfsReferralDataInternal.java

        void setLink(String link);
    
        /**
         * Get the cache key for this referral
         *
         * @return cache key
         */
        String getKey();
    
        /**
         * Set the cache key for this referral
         *
         * @param key
         *            cache key
         */
        void setKey(String key);
    
        /**
         * Set the cache map for this referral
         *
         * @param map the cache map to associate with this referral
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/util/DES.java

         */
        public DES(final byte[] key) {
            if (key.length == 7) {
                final byte[] key8 = new byte[8];
                makeSMBKey(key, key8);
                setKey(key8);
            } else {
                setKey(key);
            }
        }
    
        /**
         * Converts a 7-byte SMB key to an 8-byte DES key with parity bits
         * @param key7 the 7-byte SMB key
         * @param key8 the output 8-byte DES key
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/opensearch/config/bsentity/dbmeta/CrawlingInfoParamDbm.java

                    (et, vl) -> ((CrawlingInfoParam) et).setCreatedTime(DfTypeUtil.toLong(vl)), "createdTime");
            setupEpg(_epgMap, et -> ((CrawlingInfoParam) et).getKey(), (et, vl) -> ((CrawlingInfoParam) et).setKey(DfTypeUtil.toString(vl)),
                    "key");
            setupEpg(_epgMap, et -> ((CrawlingInfoParam) et).getValue(), (et, vl) -> ((CrawlingInfoParam) et).setValue(DfTypeUtil.toString(vl)),
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Nov 27 07:01:25 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/dfs/DfsReferralDataImpl.java

            this.link = link;
        }
    
        /**
         * @return the key
         */
        @Override
        public String getKey() {
            return this.key;
        }
    
        /**
         * @param key
         *            the key to set
         */
        @Override
        public void setKey(final String key) {
            this.key = key;
        }
    
        @Override
        public String getServer() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/helper/CrawlingInfoHelper.java

                    final CrawlingInfoParam crawlingInfoParam = new CrawlingInfoParam();
                    crawlingInfoParam.setCrawlingInfoId(crawlingInfo.getId());
                    crawlingInfoParam.setKey(entry.getKey());
                    crawlingInfoParam.setValue(entry.getValue());
                    crawlingInfoParamList.add(crawlingInfoParam);
                }
                getCrawlingInfoService().storeInfo(crawlingInfoParamList);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/service/CrawlingInfoService.java

                        }
    
                        final CrawlingInfoParam entity = new CrawlingInfoParam();
                        entity.setCrawlingInfoId(crawlingInfo.getId());
                        entity.setKey(list.get(2));
                        entity.setValue(list.get(3));
                        entity.setCreatedTime(formatter.parse(list.get(4)).getTime());
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.9K bytes
    - Viewed (0)
Back to top