diff --git a/src/main/java/de/rtuni/ms/as/filter/JWTUsernameAndPasswordAuthenticationFilter.java b/src/main/java/de/rtuni/ms/as/filter/JWTUsernameAndPasswordAuthenticationFilter.java index 73d7296ee4a6da6242a6c0bebe9cf67e378cff0d..36463134809e7cc027208b0a672b031cc2037049 100644 --- a/src/main/java/de/rtuni/ms/as/filter/JWTUsernameAndPasswordAuthenticationFilter.java +++ b/src/main/java/de/rtuni/ms/as/filter/JWTUsernameAndPasswordAuthenticationFilter.java @@ -113,7 +113,7 @@ extends UsernamePasswordAuthenticationFilter { .setExpiration(new Date(now + jwtConfiguration.getExpiration() * 1000)) // 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()) // Builds the JWT. .compact();