Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for parseSignV4 (0.34 seconds)

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

  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)
Back to Top