Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 81 for reauth (0.22 sec)

  1. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

        }
    
        @Test
        @DisplayName("Should derive unique keys for different preauth values")
        void testDeriveKeys_UniquePreauthValues() {
            // Given
            byte[] preauth1 = new byte[64];
            byte[] preauth2 = new byte[64];
            new SecureRandom().nextBytes(preauth1);
            new SecureRandom().nextBytes(preauth2);
            int dialect = Smb2Constants.SMB2_DIALECT_0311;
    
            // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  2. cmd/auth-handler.go

    		return authTypeAnonymous
    	}
    	return authTypeUnknown
    }
    
    func validateAdminSignature(ctx context.Context, r *http.Request, region string) (auth.Credentials, bool, APIErrorCode) {
    	var cred auth.Credentials
    	var owner bool
    	s3Err := ErrAccessDenied
    	if _, ok := r.Header[xhttp.AmzContentSha256]; ok &&
    		getRequestAuthType(r) == authTypeSigned {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/PreauthIntegrityService.java

                if (enforceIntegrity) {
                    throw new CIFSException("No preauth integrity context found for session: " + sessionId);
                }
                log.warn("No preauth integrity context for session {}, skipping update", sessionId);
                return;
            }
    
            if (!context.isValid()) {
                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    //     - http://docs.aws.amazon.com/AmazonS3/latest/dev/auth-request-sig-v2.html
    // returns true if matches, false otherwise. if error is not nil then it is always false
    
    func validateV2AuthHeader(r *http.Request) (auth.Credentials, APIErrorCode) {
    	var cred auth.Credentials
    	v2Auth := r.Header.Get(xhttp.Authorization)
    	if v2Auth == "" {
    		return cred, ErrAuthHeaderEmpty
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testDifferentContextTypes() {
                PreauthIntegrityNegotiateContext preauth = new PreauthIntegrityNegotiateContext();
                EncryptionNegotiateContext encryption = new EncryptionNegotiateContext();
    
                assertNotEquals(preauth.getContextType(), encryption.getContextType());
                assertEquals(0x1, preauth.getContextType());
                assertEquals(0x2, encryption.getContextType());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

        }
    
        @AfterEach
        public void tearDown() {
            if (preauthService != null) {
                preauthService.cleanup();
            }
        }
    
        @Test
        @DisplayName("Test preauth salt generation")
        public void testPreauthSaltGeneration() {
            byte[] salt1 = preauthService.generatePreauthSalt();
            byte[] salt2 = preauthService.generatePreauthSalt();
    
            assertNotNull(salt1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

        }
    
        /**
         * Set the health check interval
         * @param millis the health check interval in milliseconds
         */
        public void setHealthCheckInterval(int millis) {
            if (millis <= 0) {
                throw new IllegalArgumentException("Health check interval must be positive");
            }
            this.healthCheckInterval = millis;
            log.info("Set health check interval to {} ms", millis);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // Then
            NegotiateContextRequest[] contexts = request.getNegotiateContexts();
            assertNotNull(contexts);
            assertEquals(2, contexts.length);
    
            // Verify preauth context
            assertTrue(contexts[0] instanceof PreauthIntegrityNegotiateContext);
            assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, contexts[0].getContextType());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  9. cmd/xl-storage-disk-id-check.go

    		return ctx, done, ctx.Err()
    	}
    
    	atomic.StoreInt64(&p.health.lastStarted, time.Now().UnixNano())
    	p.health.waiting.Add(1)
    
    	ctx = context.WithValue(ctx, healthDiskCtxKey{}, &healthDiskCtxValue{lastSuccess: &p.health.lastSuccess})
    	si := p.updateStorageMetrics(s, paths...)
    	var once sync.Once
    	return ctx, func(sz int64, errp *error) {
    		p.health.waiting.Add(-1)
    		once.Do(func() {
    			if errp != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 25 05:41:04 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/SmbTransportImplTest.java

            void createEncryptionContext_happyDialects() throws Exception {
                byte[] sessionKey = new byte[16];
                byte[] preauth = new byte[16];
    
                // SMB 3.0 -> AES-128-CCM
                setField(transport, "smb2", true);
                Smb2NegotiateResponse smb300 = new Smb2NegotiateResponse(cfg);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
Back to top