Polish jwt-jose

This commit is contained in:
Joe Grandja 2017-10-13 06:09:45 -04:00
parent c441f99567
commit ea64d10d95
4 changed files with 4 additions and 5 deletions

View File

@ -27,7 +27,7 @@ import java.util.Map;
* An implementation of a {@link SecurityToken} representing a <i>JSON Web Token (JWT)</i>.
*
* <p>
* JWTs represent a set of &quot;Claims&quot; as a JSON object that is encoded in a
* JWTs represent a set of &quot;Claims&quot; as a JSON object that may be encoded in a
* <i>JSON Web Signature (JWS)</i> and/or <i>JSON Web Encryption (JWE)</i> structure.
* The JSON object, also known as the <i>JWT Claims Set</i>, consists of one or more Claim Name/Claim Value pairs.
* The Claim Name is a <code>String</code> and the Claim Value is an arbitrary JSON object.

View File

@ -22,8 +22,8 @@ import java.time.Instant;
import java.util.List;
/**
* A {@link ClaimAccessor} for the &quot;Registered Claim Names&quot;
* that may be contained in the JSON object <i>JWT Claims Set</i> of a <i>JSON Web Token (JWT)</i>.
* A {@link ClaimAccessor} for the &quot;Claims&quot; that may be contained
* in the JSON object <i>JWT Claims Set</i> of a <i>JSON Web Token (JWT)</i>.
*
* @author Joe Grandja
* @since 5.0

View File

@ -34,7 +34,6 @@ package org.springframework.security.jwt;
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc7515#section-3.1">JWS Compact Serialization</a>
* @see <a target="_blank" href="https://tools.ietf.org/html/rfc7516#section-3.1">JWE Compact Serialization</a>
*/
@FunctionalInterface
public interface JwtDecoder {
Jwt decode(String token) throws JwtException;

View File

@ -72,7 +72,7 @@ public class NimbusJwtDecoderJwkSupport implements JwtDecoder {
try {
this.jwkSetUrl = new URL(jwkSetUrl);
} catch (MalformedURLException ex) {
throw new IllegalArgumentException("Invalid JWK Set URL: " + ex.getMessage(), ex);
throw new IllegalArgumentException("Invalid JWK Set URL " + jwkSetUrl + " : " + ex.getMessage(), ex);
}
this.jwsAlgorithm = JWSAlgorithm.parse(jwsAlgorithm);