Skip to content

Commit 9916535

Browse files
elharochingor13
authored andcommitted
Update JWT documentation URLs (#759)
* update URLs * fix .gitignore for eclipse * fix .gitignore for eclipse * fix .gitignore for eclipse * update link to JSON Web signature spec
1 parent d0a0623 commit 9916535

File tree

5 files changed

+22
-53
lines changed

5 files changed

+22
-53
lines changed

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ nosetests.xml
1717

1818
# Mr Developer
1919
.mr.developer.cfg
20-
.project
20+
21+
**/.project
2122
.pydevproject
2223
*.iml
2324
.idea
2425
.settings
2526
.DS_Store
26-
.classpath
27+
**/.classpath
28+
**/.checkstyle
2729

2830
# Built documentation
2931
docs/

google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebSignature.java

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012 Google Inc.
2+
* Copyright 2012 Google LLC.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -38,15 +38,14 @@
3838
import javax.net.ssl.X509TrustManager;
3939

4040
/**
41-
* <a href="http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11">JSON Web Signature
42-
* (JWS)</a>.
41+
* <a href="https://tools.ietf.org/html/rfc7515">JSON Web Signature(JWS)</a>.
4342
*
4443
* <p>Sample usage:
4544
*
4645
* <pre>
4746
* public static void printPayload(JsonFactory jsonFactory, String tokenString) throws IOException {
48-
* JsonWebSignature jws = JsonWebSignature.parse(jsonFactory, tokenString);
49-
* System.out.println(jws.getPayload());
47+
* JsonWebSignature jws = JsonWebSignature.parse(jsonFactory, tokenString);
48+
* System.out.println(jws.getPayload());
5049
* }
5150
* </pre>
5251
*
@@ -67,7 +66,7 @@ public class JsonWebSignature extends JsonWebToken {
6766
* @param header header
6867
* @param payload payload
6968
* @param signatureBytes bytes of the signature
70-
* @param signedContentBytes bytes of the signature content
69+
* @param signedContentBytes bytes of the signed content
7170
*/
7271
public JsonWebSignature(
7372
Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes) {
@@ -77,8 +76,8 @@ public JsonWebSignature(
7776
}
7877

7978
/**
80-
* Header as specified in <a
81-
* href="http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11#section-4.1">Reserved
79+
* Header as specified in
80+
* <a href="https://tools.ietf.org/html/rfc7515#section-4.1">Reserved
8281
* Header Parameter Names</a>.
8382
*/
8483
public static class Header extends JsonWebToken.Header {
@@ -406,11 +405,11 @@ public final boolean verifySignature(PublicKey publicKey) throws GeneralSecurity
406405
*
407406
* <p>The leaf certificate of the certificate chain must be an SSL server certificate.
408407
*
409-
* @param trustManager Trust manager used to verify the X509 certificate chain embedded in this
410-
* message.
411-
* @return The signature certificate if the signature could be verified, null otherwise.
408+
* @param trustManager trust manager used to verify the X509 certificate chain embedded in this
409+
* message
410+
* @return the signature certificate if the signature could be verified, null otherwise
412411
* @throws GeneralSecurityException
413-
* @since 1.19.1.
412+
* @since 1.19.1
414413
*/
415414
@Beta
416415
public final X509Certificate verifySignature(X509TrustManager trustManager)
@@ -441,7 +440,7 @@ public final X509Certificate verifySignature(X509TrustManager trustManager)
441440
*
442441
* <p>The leaf certificate of the certificate chain must be an SSL server certificate.
443442
*
444-
* @return The signature certificate if the signature could be verified, null otherwise.
443+
* @return the signature certificate if the signature could be verified, null otherwise
445444
* @throws GeneralSecurityException
446445
* @since 1.19.1.
447446
*/

google-http-client/src/main/java/com/google/api/client/json/webtoken/JsonWebToken.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2012 Google Inc.
2+
* Copyright 2012 Google LLC
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
* in compliance with the License. You may obtain a copy of the License at
@@ -22,7 +22,7 @@
2222
import java.util.List;
2323

2424
/**
25-
* <a href="http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08">JSON Web Token (JWT)</a>.
25+
* <a href="https://tools.ietf.org/html/rfc7519">JSON Web Token (JWT)</a>.
2626
*
2727
* <p>Implementation is not thread-safe.
2828
*
@@ -47,8 +47,8 @@ public JsonWebToken(Header header, Payload payload) {
4747
}
4848

4949
/**
50-
* Header as specified in <a
51-
* href="http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08#section-5">JWT Header</a>.
50+
* Header as specified in
51+
* <a href="https://tools.ietf.org/html/rfc7519#section-5">JWT Header</a>.
5252
*/
5353
public static class Header extends GenericJson {
5454

@@ -115,8 +115,8 @@ public Header clone() {
115115
}
116116

117117
/**
118-
* Payload as specified in <a
119-
* href="http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08#section-4.1">Reserved Claim
118+
* Payload as specified in
119+
* <a href="https://tools.ietf.org/html/rfc7519#section-4.1">Reserved Claim
120120
* Names</a>.
121121
*/
122122
public static class Payload extends GenericJson {

samples/dailymotion-simple-cmdline-sample/.classpath

Lines changed: 0 additions & 9 deletions
This file was deleted.

samples/dailymotion-simple-cmdline-sample/.project

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)