Skip to content

Commit

Permalink
Update JWT documentation URLs (#759)
Browse files Browse the repository at this point in the history
* update URLs

* fix .gitignore for eclipse

* fix .gitignore for eclipse

* fix .gitignore for eclipse

* update link to JSON Web signature spec
  • Loading branch information
elharo authored and chingor13 committed Aug 5, 2019
1 parent d0a0623 commit 9916535
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 53 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Expand Up @@ -17,13 +17,15 @@ nosetests.xml

# Mr Developer
.mr.developer.cfg
.project

**/.project
.pydevproject
*.iml
.idea
.settings
.DS_Store
.classpath
**/.classpath
**/.checkstyle

# Built documentation
docs/
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012 Google Inc.
* Copyright 2012 Google LLC.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand Down Expand Up @@ -38,15 +38,14 @@
import javax.net.ssl.X509TrustManager;

/**
* <a href="http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11">JSON Web Signature
* (JWS)</a>.
* <a href="https://tools.ietf.org/html/rfc7515">JSON Web Signature(JWS)</a>.
*
* <p>Sample usage:
*
* <pre>
* public static void printPayload(JsonFactory jsonFactory, String tokenString) throws IOException {
* JsonWebSignature jws = JsonWebSignature.parse(jsonFactory, tokenString);
* System.out.println(jws.getPayload());
* JsonWebSignature jws = JsonWebSignature.parse(jsonFactory, tokenString);
* System.out.println(jws.getPayload());
* }
* </pre>
*
Expand All @@ -67,7 +66,7 @@ public class JsonWebSignature extends JsonWebToken {
* @param header header
* @param payload payload
* @param signatureBytes bytes of the signature
* @param signedContentBytes bytes of the signature content
* @param signedContentBytes bytes of the signed content
*/
public JsonWebSignature(
Header header, Payload payload, byte[] signatureBytes, byte[] signedContentBytes) {
Expand All @@ -77,8 +76,8 @@ public JsonWebSignature(
}

/**
* Header as specified in <a
* href="http://tools.ietf.org/html/draft-ietf-jose-json-web-signature-11#section-4.1">Reserved
* Header as specified in
* <a href="https://tools.ietf.org/html/rfc7515#section-4.1">Reserved
* Header Parameter Names</a>.
*/
public static class Header extends JsonWebToken.Header {
Expand Down Expand Up @@ -406,11 +405,11 @@ public final boolean verifySignature(PublicKey publicKey) throws GeneralSecurity
*
* <p>The leaf certificate of the certificate chain must be an SSL server certificate.
*
* @param trustManager Trust manager used to verify the X509 certificate chain embedded in this
* message.
* @return The signature certificate if the signature could be verified, null otherwise.
* @param trustManager trust manager used to verify the X509 certificate chain embedded in this
* message
* @return the signature certificate if the signature could be verified, null otherwise
* @throws GeneralSecurityException
* @since 1.19.1.
* @since 1.19.1
*/
@Beta
public final X509Certificate verifySignature(X509TrustManager trustManager)
Expand Down Expand Up @@ -441,7 +440,7 @@ public final X509Certificate verifySignature(X509TrustManager trustManager)
*
* <p>The leaf certificate of the certificate chain must be an SSL server certificate.
*
* @return The signature certificate if the signature could be verified, null otherwise.
* @return the signature certificate if the signature could be verified, null otherwise
* @throws GeneralSecurityException
* @since 1.19.1.
*/
Expand Down
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012 Google Inc.
* Copyright 2012 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
Expand All @@ -22,7 +22,7 @@
import java.util.List;

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

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

Expand Down Expand Up @@ -115,8 +115,8 @@ public Header clone() {
}

/**
* Payload as specified in <a
* href="http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-08#section-4.1">Reserved Claim
* Payload as specified in
* <a href="https://tools.ietf.org/html/rfc7519#section-4.1">Reserved Claim
* Names</a>.
*/
public static class Payload extends GenericJson {
Expand Down
9 changes: 0 additions & 9 deletions samples/dailymotion-simple-cmdline-sample/.classpath

This file was deleted.

23 changes: 0 additions & 23 deletions samples/dailymotion-simple-cmdline-sample/.project

This file was deleted.

0 comments on commit 9916535

Please sign in to comment.