本文整理汇总了Java中org.springframework.security.ldap.authentication.LdapAuthenticator类的典型用法代码示例。如果您正苦于以下问题:Java LdapAuthenticator类的具体用法?Java LdapAuthenticator怎么用?Java LdapAuthenticator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
LdapAuthenticator类属于org.springframework.security.ldap.authentication包,在下文中一共展示了LdapAuthenticator类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: OsiamLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public OsiamLdapAuthenticationProvider(LdapAuthenticator authenticator,
LdapAuthoritiesPopulator authoritiesPopulator,
OsiamLdapUserContextMapper osiamLdapUserContextMapper,
SCIMUserProvisioning userProvisioning,
boolean syncUserData) {
super(authenticator, authoritiesPopulator);
this.osiamLdapUserContextMapper = osiamLdapUserContextMapper;
this.userProvisioning = userProvisioning;
this.syncUserData = syncUserData;
}
示例2: LdapProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
/**
* @param authenticator
* @param authoritiesPopulator
*/
public LdapProvider(LdapAuthenticator authenticator, LdapAuthoritiesPopulator authoritiesPopulator) {
super(authenticator, authoritiesPopulator);
try {
md = MessageDigest.getInstance("MD5");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException("Failed to init Message Digest ", e);
}
}
示例3: ldapAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
@Bean
public LdapAuthenticator ldapAuthenticator() {
BindAuthenticator authenticator = new BindAuthenticator(ldapContextSource());
authenticator.setUserAttributes(new String[] {ldapUserIdAttr});
if (!"".equals(ldapSearchFilter)) {
logger.debug("ldapSearch: {} {}", ldapSearchBase, ldapSearchFilter);
authenticator.setUserSearch(new FilterBasedLdapUserSearch(ldapSearchBase, ldapSearchFilter, ldapContextSource()));
} else {
logger.debug("ldapUserDn: {}", ldapUserDn);
authenticator.setUserDnPatterns(new String[] {ldapUserDn});
}
return authenticator;
}
示例4: SpringLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public SpringLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
示例5: MidPointLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public MidPointLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
示例6: OsiamLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public OsiamLdapAuthenticationProvider(LdapAuthenticator authenticator,
LdapAuthoritiesPopulator authoritiesPopulator, OsiamLdapUserContextMapper osiamLdapUserContextMapper) {
super(authenticator, authoritiesPopulator);
this.osiamLdapUserContextMapper = osiamLdapUserContextMapper;
}
示例7: LdapAuthenticationProviderProxy
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public LdapAuthenticationProviderProxy(LdapAuthenticator authenticator) {
super(authenticator);
}
开发者ID:gravitee-io,项目名称:gravitee-management-rest-api,代码行数:4,代码来源:LdapAuthenticationProviderProxy.java
示例8: getAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public LdapAuthenticator getAuthenticator() {
return authenticator;
}
示例9: setAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public void setAuthenticator(LdapAuthenticator authenticator) {
this.authenticator = authenticator;
}
示例10: setAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
private void setAuthenticator(LdapAuthenticator authenticator) {
Assert.notNull(authenticator, "An LdapAuthenticator must be supplied");
this.authenticator = authenticator;
}
示例11: getAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
private LdapAuthenticator getAuthenticator() {
return authenticator;
}
示例12: MidPointLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public MidPointLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
示例13: UrLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
/**
* Create an instance with the supplied authenticator and authorities populator implementations.
*
* @param authenticator the authentication strategy (bind, password comparison, etc)
* to be used by this provider for authenticating users.
* @param authoritiesPopulator the strategy for obtaining the authorities for a given user after they've been
* authenticated.
*/
public UrLdapAuthenticationProvider(LdapAuthenticator authenticator, LdapAuthoritiesPopulator authoritiesPopulator) {
this.setAuthenticator(authenticator);
this.setAuthoritiesPopulator(authoritiesPopulator);
}