mirror of https://github.com/jwtk/jjwt.git
Minor syntax correction
This commit is contained in:
parent
2ba41678f6
commit
dac9ee66af
|
@ -42,7 +42,7 @@ import java.security.Key;
|
||||||
|
|
||||||
// We need a signing key, so we'll create one just for this example. Usually
|
// We need a signing key, so we'll create one just for this example. Usually
|
||||||
// the key would be read from your application configuration instead.
|
// the key would be read from your application configuration instead.
|
||||||
Key key = MacProvider.generateKey()
|
Key key = MacProvider.generateKey();
|
||||||
|
|
||||||
String s = Jwts.builder().setSubject("Joe").signWith(SignatureAlgorithm.HS512, key).compact();
|
String s = Jwts.builder().setSubject("Joe").signWith(SignatureAlgorithm.HS512, key).compact();
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue