Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(495)

Delta Between Two Patch Sets: Src/GoogleApis.Auth/JsonWebSignature.cs

Issue 13632059: Issue 351: Reimplement OAuth2 - Step 2 (Auth PCL - only data types) (Closed) Base URL: https://google-api-dotnet-client.googlecode.com/hg/
Left Patch Set: Created 10 years, 10 months ago
Right Patch Set: minor Created 10 years, 10 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Src/GoogleApis.Auth/GoogleJsonWebSignature.cs ('k') | Src/GoogleApis.Auth/JsonWebToken.cs » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
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
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
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 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b