Skip to content

Commit bfc9d2a

Browse files
committed
Add missing LDAP setAuthoritiesMapper Javadoc
1 parent f5266c7 commit bfc9d2a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ldap/src/main/java/org/springframework/security/ldap/authentication/AbstractLdapAuthenticationProvider.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2021 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -129,6 +129,14 @@ public void setMessageSource(MessageSource messageSource) {
129129
this.messages = new MessageSourceAccessor(messageSource);
130130
}
131131

132+
/**
133+
* Sets the {@link GrantedAuthoritiesMapper} used for converting the authorities
134+
* loaded from storage to a new set of authorities which will be associated to
135+
* the {@link UsernamePasswordAuthenticationToken}. If not set, defaults to a
136+
* {@link NullAuthoritiesMapper}.
137+
* @param authoritiesMapper the {@link GrantedAuthoritiesMapper} used for mapping the
138+
* user's authorities
139+
*/
132140
public void setAuthoritiesMapper(GrantedAuthoritiesMapper authoritiesMapper) {
133141
this.authoritiesMapper = authoritiesMapper;
134142
}

0 commit comments

Comments
 (0)