Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for EncodeToString (0.09 sec)

  1. cmd/object-api-listobjects_test.go

    		md5Bytes := md5.Sum([]byte(object.content))
    		_, err = obj.PutObject(context.Background(), object.parentBucket, object.name, mustGetPutObjReader(t, bytes.NewBufferString(object.content),
    			int64(len(object.content)), hex.EncodeToString(md5Bytes[:]), ""), ObjectOptions{
    			Versioned:   globalBucketVersioningSys.PrefixEnabled(object.parentBucket, object.name),
    			UserDefined: object.meta,
    		})
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		if err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    
    		// Set the correct hex md5sum for the fan-out stream.
    		fanOutOpts.MD5Hex = hex.EncodeToString(md5w.Sum(nil))
    
    		concurrentSize := 100
    		if runtime.GOMAXPROCS(0) < concurrentSize {
    			concurrentSize = runtime.GOMAXPROCS(0)
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    	region := sumHMAC(date, []byte(globalMinioDefaultRegion))
    	service := sumHMAC(region, []byte(string(serviceS3)))
    	signingKey := sumHMAC(service, []byte("aws4_request"))
    
    	signature := hex.EncodeToString(sumHMAC(signingKey, []byte(stringToSign)))
    
    	// final Authorization header
    	parts := []string{
    		"AWS4-HMAC-SHA256" + " Credential=" + accessKey + SlashSeparator + scope,
    		"SignedHeaders=" + signedHeaders,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/ldap/LdapManager.java

                                    groupList.add(Base64.getUrlEncoder().encodeToString(name.getBytes(Constants.CHARSET_UTF_8)));
                                } else if (lowerEntryDn.indexOf(lowerRoleDn) != -1) {
                                    roleList.add(Base64.getUrlEncoder().encodeToString(name.getBytes(Constants.CHARSET_UTF_8)));
                                }
                            });
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 65.9K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v2.go

    }
    
    func (x xlMetaV2VersionHeader) String() string {
    	return fmt.Sprintf("Type: %s, VersionID: %s, Signature: %s, ModTime: %s, Flags: %s, N: %d, M: %d",
    		x.Type.String(),
    		hex.EncodeToString(x.VersionID[:]),
    		hex.EncodeToString(x.Signature[:]),
    		time.Unix(0, x.ModTime),
    		x.Flags.String(),
    		x.EcN, x.EcM,
    	)
    }
    
    // matchesNotStrict returns whether x and o have both have non-zero version,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  6. cmd/iam.go

    	}
    	m := make(map[string]interface{})
    	m[parentClaim] = parentUser
    
    	if len(policyBuf) > 0 {
    		m[policy.SessionPolicyName] = base64.StdEncoding.EncodeToString(policyBuf)
    		m[iamPolicyClaimNameSA()] = embeddedPolicyType
    	} else {
    		m[iamPolicyClaimNameSA()] = inheritedPolicyType
    	}
    
    	// Add all the necessary claims for the service account.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  7. cmd/iam-store.go

    			}
    
    			if len(policyBuf) > maxSVCSessionPolicySize {
    				return updatedAt, errSessionPolicyTooLarge
    			}
    
    			// Overwrite session policy claims.
    			m.Set(policy.SessionPolicyName, base64.StdEncoding.EncodeToString(policyBuf))
    			m.Set(iamPolicyClaimNameSA(), embeddedPolicyType)
    		}
    	}
    
    	cr.SessionToken, err = auth.JWTSignWithAccessKey(accessKey, m.Map(), cr.SecretKey)
    	if err != nil {
    		return updatedAt, err
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
Back to top