Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for parseSignV4 (0.14 seconds)

  1. cmd/signature-v4-parser.go

    }
    
    // Parses signature version '4' header of the following form.
    //
    //	Authorization: algorithm Credential=accessKeyID/credScope, \
    //	        SignedHeaders=signedHeaders, Signature=signature
    func parseSignV4(v4Auth string, region string, stype serviceType) (sv signValues, aec APIErrorCode) {
    	// credElement is fetched first to skip replacing the space in access key.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:35 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  2. cmd/signature-v4-parser_test.go

    				Signature:     "abcd",
    			},
    			expectedErrCode: ErrNone,
    		},
    	}
    
    	for i, testCase := range testCases {
    		parsedAuthField, actualErrCode := parseSignV4(testCase.inputV4AuthStr, "", "s3")
    
    		if testCase.expectedErrCode != actualErrCode {
    			t.Fatalf("Test %d: Expected the APIErrCode to be %d, got %d", i+1, testCase.expectedErrCode, actualErrCode)
    		}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Oct 10 18:57:35 GMT 2025
    - 27.8K bytes
    - Click Count (0)
  3. cmd/streaming-signature-v4.go

    	// Copy request.
    	req := *r
    
    	// Save authorization header.
    	v4Auth := req.Header.Get(xhttp.Authorization)
    
    	// Parse signature version '4' header.
    	signV4Values, errCode := parseSignV4(v4Auth, globalSite.Region(), serviceS3)
    	if errCode != ErrNone {
    		return cred, "", "", time.Time{}, errCode
    	}
    
    	// Payload streaming.
    	payload := streamingContentSHA256
    	if trailers {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 18.2K bytes
    - Click Count (0)
Back to Top