Example usage for org.springframework.security.ldap.authentication NullLdapAuthoritiesPopulator NullLdapAuthoritiesPopulator

List of usage examples for org.springframework.security.ldap.authentication NullLdapAuthoritiesPopulator NullLdapAuthoritiesPopulator

Introduction

In this page you can find the example usage for org.springframework.security.ldap.authentication NullLdapAuthoritiesPopulator NullLdapAuthoritiesPopulator.

Prototype

NullLdapAuthoritiesPopulator

Source Link

Usage

From source file:org.springframework.security.ldap.authentication.LdapAuthenticationProvider.java

/**
 * Creates an instance with the supplied authenticator and a null authorities populator.
 * In this case, the authorities must be mapped from the user context.
 *
 * @param authenticator the authenticator strategy.
 *///ww w .j  a  v a 2s .c  o m
public LdapAuthenticationProvider(LdapAuthenticator authenticator) {
    this.setAuthenticator(authenticator);
    this.setAuthoritiesPopulator(new NullLdapAuthoritiesPopulator());
}