Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 195 for genkey (0.14 sec)

  1. 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)
  2. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            // Given
            byte[] encKey = new byte[16];
            byte[] decKey = new byte[16];
            new SecureRandom().nextBytes(encKey);
            new SecureRandom().nextBytes(decKey);
    
            // When using try-with-resources
            assertDoesNotThrow(() -> {
                try (Smb2EncryptionContext context = new Smb2EncryptionContext(1, DialectVersion.SMB311, encKey, decKey)) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/cache/PopulatedCachesTest.java

            assertThat(cache.asMap().replace(entry.getKey(), newValue))
                .isSameInstanceAs(entry.getValue());
            assertThat(cache.asMap().replace(entry.getKey(), newValue, entry.getValue())).isTrue();
            Object newKey = new Object();
            assertThat(cache.asMap().replace(newKey, entry.getValue())).isNull();
            assertThat(cache.asMap().replace(newKey, entry.getValue(), newValue)).isFalse();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 22:03:28 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  4. docs/smb3-features/01-smb3-lease-design.md

                }
                
                // Create new lease
                Smb2LeaseKey newKey = new Smb2LeaseKey();
                LeaseEntry newEntry = new LeaseEntry(newKey, path, requestedState);
                leases.put(newKey, newEntry);
                pathToLease.put(path, newKey);
                
                return newKey;
            } finally {
                lock.writeLock().unlock();
            }
        }
        
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            // When
            byte[] encKey = Smb3KeyDerivation.deriveEncryptionKey(dialect, sessionKey, preauthIntegrity);
    
            // Then
            assertNotNull(encKey, "Encryption key should not be null");
            assertEquals(16, encKey.length, "Encryption key should be 16 bytes");
            assertFalse(Arrays.equals(sessionKey, encKey), "Encryption key should be different from session key");
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            try {
                int expectedKeyLength = getKeyLength();
                byte[] encKey = getEncryptionKey();
                byte[] decKey = getDecryptionKey();
    
                try {
                    boolean valid =
                            encKey != null && encKey.length == expectedKeyLength && decKey != null && decKey.length == expectedKeyLength;
                    return valid;
                } finally {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            decodedContext.decode(buffer, 0, buffer.length);
    
            // Verify decoded values
            assertArrayEquals(originalKey.getKey(), decodedContext.getLeaseKey().getKey());
            assertEquals(originalLeaseState, decodedContext.getLeaseState());
            assertEquals(originalScope, decodedContext.getCacheScope());
            assertEquals(60000L, decodedContext.getMaxCacheAge());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/classrealm/DefaultClassRealmManager.java

            Objects.requireNonNull(model, "model cannot be null");
    
            ClassLoader parent = getMavenApiRealm();
    
            return createRealm(getKey(model), RealmType.Project, parent, null, null, artifacts);
        }
    
        private static String getKey(Model model) {
            return "project>" + model.getGroupId() + ":" + model.getArtifactId() + ":" + model.getVersion();
        }
    
        @Override
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 13.5K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          this.samples =
              new SampleElements<>(
                  mapSamples.e0().getKey(),
                  mapSamples.e1().getKey(),
                  mapSamples.e2().getKey(),
                  mapSamples.e3().getKey(),
                  mapSamples.e4().getKey());
        }
    
        @Override
        public SampleElements<K> samples() {
          return samples;
        }
    
        @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeMap.java

        RangeMapEntry(Range<K> range, V value) {
          super(range, value);
        }
    
        boolean contains(K value) {
          return getKey().contains(value);
        }
    
        Cut<K> getLowerBound() {
          return getKey().lowerBound;
        }
    
        Cut<K> getUpperBound() {
          return getKey().upperBound;
        }
      }
    
      @Override
      public @Nullable V get(K key) {
        Entry<Range<K>, V> entry = getEntry(key);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 22.7K bytes
    - Viewed (0)
Back to top