Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseSignV4 (0.06 sec)

  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.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:35 UTC 2025
    - 9.4K bytes
    - Viewed (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)
    		}
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri Oct 10 18:57:35 UTC 2025
    - 27.8K bytes
    - Viewed (0)
Back to top