Skip to content

Commit

Permalink
Fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Feb 5, 2024
1 parent a64970d commit 4ebebac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,12 +382,10 @@ public void setContextEnvironmentProperties(Map<String, Object> environment) {
}

/**
* Set the strategy for obtaining the authorities for a given
* user after they've been authenticated.
* Consider adjusting this if you require a custom authorities mapping
* algorithm different from a default one.
* The default value is DefaultActiveDirectoryAuthoritiesPopulator.
*
* Set the strategy for obtaining the authorities for a given user after they've been
* authenticated. Consider adjusting this if you require a custom authorities mapping
* algorithm different from a default one. The default value is
* DefaultActiveDirectoryAuthoritiesPopulator.
* @param authoritiesPopulator authorities population strategy
* @since 6.3
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public final class DefaultActiveDirectoryAuthoritiesPopulator implements LdapAut
private final Log logger = LogFactory.getLog(getClass());

@Override
public Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOperations userData, String username) {
public Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOperations userData,
String username) {
String[] groups = userData.getStringAttributes("memberOf");
if (groups == null) {
this.logger.debug("No values for 'memberOf' attribute.");
Expand All @@ -61,4 +62,5 @@ public Collection<? extends GrantedAuthority> getGrantedAuthorities(DirContextOp

return authorities;
}

}

0 comments on commit 4ebebac

Please sign in to comment.