Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for newSession (0.05 sec)

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

            SmbSessionImpl session = newSession();
            String s = session.toString();
            assertTrue(s.contains("targetHost=server.example"));
            assertTrue(s.contains("targetDomain=EXAMPLE"));
        }
    
        @Test
        @DisplayName("getExpiration: null when unset, value when positive")
        void testGetExpiration() {
            SmbSessionImpl session = newSession();
            assertNull(session.getExpiration());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/AbstractCoreMavenComponentTestCase.java

                    projectBuildingRequest.getRepositorySession(),
                    mavenExecutionRequest,
                    new DefaultMavenExecutionResult());
    
            InternalSession iSession = defaultSessionFactory.newSession(mSession);
            mSession.setSession(iSession);
    
            SessionScope sessionScope = getContainer().lookup(SessionScope.class);
            sessionScope.enter();
            sessionScope.seed(MavenSession.class, mSession);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/artifact/AbstractArtifactComponentTestCase.java

                            getContainer().lookup(MavenRepositorySystem.class),
                            new DefaultLookup(getContainer()),
                            getContainer().lookup(RuntimeInformation.class))
                    .newSession(session));
    
            legacySupport.setSession(session);
        }
    
        protected abstract String component();
    
        /**
         * Return an existing file, not a directory - causes creation to fail.
         *
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/util/SecureKeyManager.java

                keyVersions.put(sessionId, newVersion);
                keyCreationTimes.put(sessionId, System.currentTimeMillis());
    
                log.info("Rotated key for session {} from version {} to {}", sessionId, currentVersion, newVersion);
    
                // Securely wipe the old key copy
                secureWipe(currentKey);
                secureWipe(newKey);
    
                return newVersion;
    
            } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/SecureKeyManagerTest.java

            // Initial version should be 0
            assertEquals(0, keyManager.getKeyVersion(sessionId), "Initial version should be 0");
    
            // Rotate key
            int newVersion = keyManager.rotateSessionKey(sessionId);
            assertEquals(1, newVersion, "New version should be 1");
            assertEquals(1, keyManager.getKeyVersion(sessionId), "Key version should be updated");
    
            // Verify old key is archived
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
Back to top