Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /* | 1 /* |
2 Copyright 2013 Google Inc | 2 Copyright 2013 Google Inc |
3 | 3 |
4 Licensed under the Apache License, Version 2.0 (the "License"); | 4 Licensed under the Apache License, Version 2.0 (the "License"); |
5 you may not use this file except in compliance with the License. | 5 you may not use this file except in compliance with the License. |
6 You may obtain a copy of the License at | 6 You may obtain a copy of the License at |
7 | 7 |
8 http://www.apache.org/licenses/LICENSE-2.0 | 8 http://www.apache.org/licenses/LICENSE-2.0 |
9 | 9 |
10 Unless required by applicable law or agreed to in writing, software | 10 Unless required by applicable law or agreed to in writing, software |
11 distributed under the License is distributed on an "AS IS" BASIS, | 11 distributed under the License is distributed on an "AS IS" BASIS, |
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 See the License for the specific language governing permissions and | 13 See the License for the specific language governing permissions and |
14 limitations under the License. | 14 limitations under the License. |
15 */ | 15 */ |
16 | 16 |
17 using System; | 17 using System; |
18 using System.Collections.Generic; | 18 using System.Collections.Generic; |
19 using System.Linq; | 19 using System.Linq; |
20 using System.Text; | 20 using System.Text; |
21 | 21 |
22 namespace Google.Apis.Auth | 22 namespace Google.Apis.Auth |
23 { | 23 { |
24 /// <summary> | 24 /// <summary> |
25 /// JSON Web Signature (JWS) implementation as specified in· | 25 /// JSON Web Signature (JWS) implementation as specified in· |
26 /// http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11. | 26 /// http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11. |
27 /// </summary> | 27 /// </summary> |
28 public class JsonWebSignature | 28 public class JsonWebSignature |
class
2013/09/24 17:25:58
Is validation of the JsonWebSignature included som
peleyal
2013/09/24 20:55:35
TODO
On 2013/09/24 17:25:58, class wrote:
| |
29 { | 29 { |
30 // TODO(peleyal): Implement some verify method: | |
31 // http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08#section -7 | |
32 | |
30 /// <summary> | 33 /// <summary> |
31 /// Header as specified in http://tools.ietf.org/html/draft-ietf-jose-js on-web-signature-11#section-4.1. | 34 /// Header as specified in http://tools.ietf.org/html/draft-ietf-jose-js on-web-signature-11#section-4.1. |
32 /// </summary> | 35 /// </summary> |
33 public class Header : JsonWebToken.Header | 36 public class Header : JsonWebToken.Header |
34 { | 37 { |
35 /// <summary> | 38 /// <summary> |
36 /// Gets or set the algorithm header parameter that identifies the c ryptographic algorithm used to secure· | 39 /// Gets or set the algorithm header parameter that identifies the c ryptographic algorithm used to secure· |
37 /// the JWS or <c>null</c>. | 40 /// the JWS or <c>null</c>. |
38 /// </summary> | 41 /// </summary> |
39 [Newtonsoft.Json.JsonPropertyAttribute("alg")] | 42 [Newtonsoft.Json.JsonPropertyAttribute("alg")] |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
91 [Newtonsoft.Json.JsonPropertyAttribute("crit")] | 94 [Newtonsoft.Json.JsonPropertyAttribute("crit")] |
92 public IList<string> critical { get; set; } | 95 public IList<string> critical { get; set; } |
93 } | 96 } |
94 | 97 |
95 /// <summary>JWS Payload.</summary> | 98 /// <summary>JWS Payload.</summary> |
96 public class Payload : JsonWebToken.Payload | 99 public class Payload : JsonWebToken.Payload |
97 { | 100 { |
98 } | 101 } |
99 } | 102 } |
100 } | 103 } |
LEFT | RIGHT |