Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for validatePreauthIntegrity (0.09 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb/PreauthIntegrityService.java

         * @param expectedHash the expected final hash
         * @return true if validation passes
         * @throws CIFSException if validation fails
         */
        public boolean validatePreauthIntegrity(String sessionId, byte[] expectedHash) throws CIFSException {
            PreauthIntegrityContext context = sessionContexts.get(sessionId);
            if (context == null) {
                if (enforceIntegrity) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 12.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            assertTrue(preauthService.validatePreauthIntegrity(sessionId, expectedHash));
    
            // Validation should fail with incorrect hash
            byte[] incorrectHash = new byte[expectedHash.length];
            secureRandom.nextBytes(incorrectHash);
    
            assertThrows(CIFSException.class, () -> {
                preauthService.validatePreauthIntegrity(sessionId, incorrectHash);
            });
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top