Skip to content

Commit a7dcdf5

Browse files
author
Simon Zeltser
committed
Fixing copyrights.
1 parent 5b2683b commit a7dcdf5

File tree

3 files changed

+34
-9
lines changed

3 files changed

+34
-9
lines changed

cdn/signUrl/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Google Cloud Signing URL Sample
22

33
This sample shows how to create Cloud CDN signed Url.
4+
Cloud CDN stands for Content Delivery Network - a globally distributed
5+
edge points of presence that cache HTTPS load balanced content close
6+
to the users. More details [here](https://cloud.google.com/cdn/docs/)
47

58
This sample requires [.NET Core 2.0](
69
https://www.microsoft.com/net/core) or later. That means using

cdn/signUrl/SignUrlSample.Tests/SignUrlTests.cs

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
// Copyright 2018 Google Inc. All rights reserved.
2-
// Use of this source code is governed by the Apache 2.0
3-
// license that can be found in the LICENSE file.
1+
/*
2+
* Copyright (c) 2017 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
416

5-
using Microsoft.VisualStudio.TestPlatform.TestHost;
617
using System;
718
using Xunit;
819

cdn/signUrl/SignUrlSample/Program.cs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
// Copyright 2018 Google Inc. All rights reserved.
2-
// Use of this source code is governed by the Apache 2.0
3-
// license that can be found in the LICENSE file.
1+
/*
2+
* Copyright (c) 2017 Google Inc.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5+
* use this file except in compliance with the License. You may obtain a copy of
6+
* the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13+
* License for the specific language governing permissions and limitations under
14+
* the License.
15+
*/
416

517
using CommandLine;
618
using System;
@@ -118,8 +130,7 @@ private static byte[] ComputeHash(byte[] secretKey, string signatureString)
118130

119131
byte[] buffer = enc.GetBytes(signatureString);
120132

121-
byte[] hashValue = hmac.ComputeHash(buffer);
122-
return hashValue;
133+
return hmac.ComputeHash(buffer);
123134
}
124135
}
125136

0 commit comments

Comments
 (0)