Add Javadoc and fix typo

Signed-off-by: SirWayne <dennis.melzer@bosch-si.com>
This commit is contained in:
SirWayne
2016-06-15 13:12:59 +02:00
parent f5f07e4af2
commit c76bca3c41
2 changed files with 78 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ public class SpringSecurityAuditorAware implements AuditorAware<String> {
final Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
if (isAuthentifactionInvalid(authentication)) {
if (isAuthenticationInvalid(authentication)) {
return null;
}
@@ -39,7 +39,7 @@ public class SpringSecurityAuditorAware implements AuditorAware<String> {
return authentication.getPrincipal().toString();
}
private static boolean isAuthentifactionInvalid(final Authentication authentication) {
private static boolean isAuthenticationInvalid(final Authentication authentication) {
return authentication == null || !authentication.isAuthenticated() || authentication.getPrincipal() == null;
}
}