Polish jwt-jose
This commit is contained in:
parent
c441f99567
commit
ea64d10d95
|
@ -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 "Claims" as a JSON object that is encoded in a
|
||||
* JWTs represent a set of "Claims" 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.
|
||||
|
|
|
@ -22,8 +22,8 @@ import java.time.Instant;
|
|||
import java.util.List;
|
||||
|
||||
/**
|
||||
* A {@link ClaimAccessor} for the "Registered Claim Names"
|
||||
* 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 "Claims" 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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue