Skip to content

Commit

Permalink
Update license headers and javadocs
Browse files Browse the repository at this point in the history
  • Loading branch information
Haarolean committed Feb 2, 2024
1 parent 73a8816 commit a8b9cd2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,6 @@ protected DirContextOperations doAuthentication(UsernamePasswordAuthenticationTo
}
}

/**
* Creates the user authority list from the values of the {@code memberOf} attribute
* obtained from the user's Active Directory entry.
*/
@Override
protected Collection<? extends GrantedAuthority> loadUserAuthorities(DirContextOperations userData, String username,
String password) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.springframework.security.ldap.authentication.ad;

import org.apache.commons.logging.Log;
Expand All @@ -13,6 +29,14 @@
import java.util.Collection;
import java.util.stream.Collectors;

/**
* The default strategy for obtaining user role information from the active directory.
* Creates the user authority list from the values of the {@code memberOf} attribute
* obtained from the user's Active Directory entry.
*
* @author Luke Taylor
* @author Roman Zabaluev
*/
public class DefaultActiveDirectoryAuthoritiesPopulator implements LdapAuthoritiesPopulator {

protected final Log logger = LogFactory.getLog(getClass());
Expand Down

0 comments on commit a8b9cd2

Please sign in to comment.