Skip to content

Commit 02476c2

Browse files
committed
Polish AuthorityUtils
1 parent 67830d4 commit 02476c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/org/springframework/security/core/authority/AuthorityUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ public static Set<String> authorityListToSet(Collection<? extends GrantedAuthori
7676
* {@code "FACTOR"}
7777
* @param authorities the list of authorities
7878
* @return a {@link Stream} containing the authorities of the given type
79+
* @since 7.0
7980
*/
8081
public static Stream<GrantedAuthority> authoritiesOfType(String type, Collection<GrantedAuthority> authorities) {
8182
return authorities.stream().filter((a) -> a.getAuthority().startsWith(type + "_"));
@@ -92,6 +93,7 @@ public static Stream<GrantedAuthority> authoritiesOfType(String type, Collection
9293
* {@code password}.
9394
* @param authority the granted authority
9495
* @return the simple name of the authority
96+
* @since 7.0
9597
*/
9698
public static String getSimpleName(GrantedAuthority authority) {
9799
String name = authority.getAuthority();

0 commit comments

Comments
 (0)