Skip to content
Snippets Groups Projects
Commit 91a32b53 authored by Julian Horner's avatar Julian Horner
Browse files

Improve comment

parent 49e4c106
No related branches found
No related tags found
No related merge requests found
...@@ -113,7 +113,7 @@ extends UsernamePasswordAuthenticationFilter { ...@@ -113,7 +113,7 @@ extends UsernamePasswordAuthenticationFilter {
.setExpiration(new Date(now + jwtConfiguration.getExpiration() * 1000)) .setExpiration(new Date(now + jwtConfiguration.getExpiration() * 1000))
// Signs the token with a hash-based message authentication code, a sha256 hash // Signs the token with a hash-based message authentication code, a sha256 hash
// function and the given secret. // function and encrypt it with the given secret.
.signWith(SignatureAlgorithm.HS512, jwtConfiguration.getSecret().getBytes()) .signWith(SignatureAlgorithm.HS512, jwtConfiguration.getSecret().getBytes())
// Builds the JWT. // Builds the JWT.
.compact(); .compact();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment