Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for specs (0.17 sec)

  1. internal/jwt/parser.go

    	c.Issuer = issuer
    }
    
    // SetAudience sets audience for these claims
    func (c *StandardClaims) SetAudience(aud string) {
    	c.Audience = aud
    }
    
    // SetExpiry sets expiry in unix epoch secs
    func (c *StandardClaims) SetExpiry(t time.Time) {
    	c.ExpiresAt = t.Unix()
    }
    
    // SetAccessKey sets access key as jwt subject and custom
    // "accessKey" field.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue May 09 07:53:08 GMT 2023
    - 13.9K bytes
    - Viewed (0)
  2. cmd/object-multipart-handlers.go

    	}) {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidPartOrder), r.URL)
    		return
    	}
    
    	// Reject retention or governance headers if set, CompleteMultipartUpload spec
    	// does not use these headers, and should not be passed down to checkPutObjectLockAllowed
    	if objectlock.IsObjectLockRequested(r.Header) || objectlock.IsObjectLockGovernanceBypassSet(r.Header) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Mar 28 17:44:56 GMT 2024
    - 39K bytes
    - Viewed (0)
  3. cmd/bucket-object-lock.go

    	return nil
    }
    
    // checkPutObjectLockAllowed enforces object retention policy and legal hold policy
    // for requests with WORM headers
    // See https://docs.aws.amazon.com/AmazonS3/latest/dev/object-lock-managing.html for the spec.
    // For non-existing objects with object retention headers set, this method returns ErrNone if bucket has
    // locking enabled and user has requisite permissions (s3:PutObjectRetention)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  4. cmd/signature-v2.go

    	return signature
    }
    
    // compareSignatureV2 returns true if and only if both signatures
    // are equal. The signatures are expected to be base64 encoded strings
    // according to the AWS S3 signature V2 spec.
    func compareSignatureV2(sig1, sig2 string) bool {
    	// Decode signature string to binary byte-sequence representation is required
    	// as Base64 encoding of a value is not unique:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 12.2K bytes
    - Viewed (0)
  5. cmd/api-response.go

    			u.Path = path.Join(SlashSeparator, object)
    			break
    		}
    	}
    	return u.String()
    }
    
    // generates ListBucketsResponse from array of BucketInfo which can be
    // serialized to match XML and JSON API spec output.
    func generateListBucketsResponse(buckets []BucketInfo) ListBucketsResponse {
    	listbuckets := make([]Bucket, 0, len(buckets))
    	data := ListBucketsResponse{}
    	owner := Owner{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 33.3K bytes
    - Viewed (2)
  6. cmd/bucket-lifecycle.go

    	if err := xml.NewDecoder(io.LimitReader(reader, maxRestoreObjectRequestSize)).Decode(&req); err != nil {
    		return nil, err
    	}
    	return &req, nil
    }
    
    // validate a RestoreObjectRequest as per AWS S3 spec https://docs.aws.amazon.com/AmazonS3/latest/API/API_RestoreObject.html
    func (r *RestoreObjectRequest) validate(ctx context.Context, objAPI ObjectLayer) error {
    	if r.Type != SelectRestoreRequest && !r.SelectParameters.IsEmpty() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Apr 17 05:09:58 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  7. cmd/encryption-v1.go

    		return objInfo.ETag
    	}
    
    	if crypto.SSECopy.IsRequested(headers) {
    		key, err = crypto.SSECopy.ParseHTTP(headers)
    		if err != nil {
    			return objInfo.ETag
    		}
    	}
    
    	// As per AWS S3 Spec, ETag for SSE-C encrypted objects need not be MD5Sum of the data.
    	// Since server side copy with same source and dest just replaces the ETag, we save
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 36.5K bytes
    - Viewed (0)
  8. cmd/sts-handlers.go

    		return
    	}
    	cred, err := auth.GetNewCredentialsWithMetadata(claims, secret)
    	if err != nil {
    		writeSTSErrorResponse(ctx, w, ErrSTSInternalError, err)
    		return
    	}
    
    	// https://openid.net/specs/openid-connect-core-1_0.html#ClaimStability
    	// claim is only considered stable when subject and iss are used together
    	// this is to ensure that ParentUser doesn't change and we get to use
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 21:31:13 GMT 2024
    - 34.7K bytes
    - Viewed (2)
  9. cmd/signature-v4.go

    }
    
    // compareSignatureV4 returns true if and only if both signatures
    // are equal. The signatures are expected to be HEX encoded strings
    // according to the AWS S3 signature V4 spec.
    func compareSignatureV4(sig1, sig2 string) bool {
    	// The CTC using []byte(str) works because the hex encoding
    	// is unique for a sequence of bytes. See also compareSignatureV2.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 16:45:54 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. cmd/erasure-multipart.go

    			}
    			return result, toObjectErr(err, bucket, object)
    		}
    		break
    	}
    
    	for i := range uploadIDs {
    		uploadIDs[i] = strings.TrimSuffix(uploadIDs[i], SlashSeparator)
    	}
    
    	// S3 spec says uploadIDs should be sorted based on initiated time, we need
    	// to read the metadata entry.
    	var uploads []MultipartInfo
    
    	populatedUploadIDs := set.NewStringSet()
    
    	for _, uploadID := range uploadIDs {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 43K bytes
    - Viewed (0)
Back to top