List of usage examples for org.springframework.security.core GrantedAuthority hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:de.blizzy.documentr.web.filter.AuthenticationCreationTimeFilter.java
private int getHashCode(Authentication authentication) { int result = StringUtils.defaultString(authentication.getName()).hashCode(); for (GrantedAuthority authority : authentication.getAuthorities()) { result ^= authority.hashCode(); }/*from w w w .j av a 2 s .c om*/ return result; }