From fb64b6fa4678b126c0eb6855d500e5a05782e3b2 Mon Sep 17 00:00:00 2001 From: Les Hazlewood <121180+lhazlewood@users.noreply.github.com> Date: Sun, 10 Mar 2019 12:07:37 -0400 Subject: [PATCH] Typo fix. Resolves #437. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3914671b..92030138 100644 --- a/README.md +++ b/README.md @@ -580,18 +580,18 @@ A JWT Header provides metadata about the contents, format and cryptographic oper If you need to set one or more JWT header parameters, such as the `kid` [(Key ID) header parameter](https://tools.ietf.org/html/rfc7515#section-4.1.4), you can simply call -`JwtBuilder` `setHeaderParameter` one or more times as needed: +`JwtBuilder` `setHeaderParam` one or more times as needed: ```java String jws = Jwts.builder() - .setHeaderParameter("kid", "myKeyId") + .setHeaderParam("kid", "myKeyId") // ... etc ... ``` -Each time `setHeaderParameter` is called, it simply appends the key-value pair to an internal `Header` instance, +Each time `setHeaderParam` is called, it simply appends the key-value pair to an internal `Header` instance, potentially overwriting any existing identically-named key/value pair. **NOTE**: You do not need to set the `alg` or `zip` header parameters as JJWT will set them automatically