Minor syntax correction

This commit is contained in:
Les Hazlewood 2015-05-13 13:04:11 -07:00
parent 2ba41678f6
commit dac9ee66af
1 changed files with 1 additions and 1 deletions

View File

@ -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();
``` ```