Skip to content

Commit

Permalink
grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
robotdan committed Apr 10, 2022
1 parent 05bd82e commit 78f9f0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/fusionauth/jwt/JWTDecoder.java
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016-2019, FusionAuth, All Rights Reserved
* Copyright (c) 2016-2022, FusionAuth, All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -77,7 +77,7 @@ public JWTDecoder withClockSkew(int clockSkew) {

/**
* Decode the JWT using one of they provided verifiers. A JWT header value named <code>kid</code> is expected to
* contain the key to lookup the correct verifier.
* contain the key to look up the correct verifier.
* <p>
* A JWT that is expired or not yet valid will not be decoded, instead a {@link JWTExpiredException} or {@link
* JWTUnavailableForProcessingException} exception will be thrown respectively.
Expand All @@ -91,7 +91,7 @@ public JWT decode(String encodedJWT, Map<String, Verifier> verifiers) {
}

/**
* Decode the JWT using one of they provided verifiers. The key used to lookup the correct verifier is provided by the
* Decode the JWT using one of they provided verifiers. The key used to look up the correct verifier is provided by the
* <code>keyFunction</code>. The key function is provided the JWT header and is expected to return a string key to
* look up the correct verifier.
* <p>
Expand All @@ -100,7 +100,7 @@ public JWT decode(String encodedJWT, Map<String, Verifier> verifiers) {
*
* @param encodedJWT The encoded JWT in string format.
* @param verifiers A map of verifiers.
* @param keyFunction A function used to lookup the verifier key from the header.
* @param keyFunction A function used to look up the verifier key from the header.
* @return a decoded JWT.
*/
public JWT decode(String encodedJWT, Map<String, Verifier> verifiers, Function<Header, String> keyFunction) {
Expand Down

0 comments on commit 78f9f0f

Please sign in to comment.