本文整理汇总了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;
}
开发者ID:osiam,项目名称:osiam,代码行数:11,代码来源:OsiamLdapAuthenticationProvider.java
示例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);
}
}
开发者ID:KylinOLAP,项目名称:Kylin,代码行数:14,代码来源:LdapProvider.java
示例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;
}
开发者ID:thm-projects,项目名称:arsnova-backend,代码行数:15,代码来源:SecurityConfig.java
示例4: SpringLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public SpringLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
开发者ID:Jenner4S,项目名称:unitimes,代码行数:4,代码来源:SpringLdapAuthenticationProvider.java
示例5: MidPointLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public MidPointLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:4,代码来源:MidPointLdapAuthenticationProvider.java
示例6: OsiamLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public OsiamLdapAuthenticationProvider(LdapAuthenticator authenticator,
LdapAuthoritiesPopulator authoritiesPopulator, OsiamLdapUserContextMapper osiamLdapUserContextMapper) {
super(authenticator, authoritiesPopulator);
this.osiamLdapUserContextMapper = osiamLdapUserContextMapper;
}
开发者ID:osiam,项目名称:auth-server,代码行数:6,代码来源:OsiamLdapAuthenticationProvider.java
示例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;
}
开发者ID:nate-rcl,项目名称:irplus,代码行数:4,代码来源:UpdateUserAccount.java
示例9: setAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public void setAuthenticator(LdapAuthenticator authenticator) {
this.authenticator = authenticator;
}
开发者ID:nate-rcl,项目名称:irplus,代码行数:4,代码来源:UpdateUserAccount.java
示例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;
}
开发者ID:nate-rcl,项目名称:irplus,代码行数:5,代码来源:UrLdapAuthenticationProvider.java
示例11: getAuthenticator
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
private LdapAuthenticator getAuthenticator() {
return authenticator;
}
开发者ID:nate-rcl,项目名称:irplus,代码行数:4,代码来源:UrLdapAuthenticationProvider.java
示例12: MidPointLdapAuthenticationProvider
import org.springframework.security.ldap.authentication.LdapAuthenticator; //导入依赖的package包/类
public MidPointLdapAuthenticationProvider(LdapAuthenticator authenticator) {
super(authenticator);
}
开发者ID:Evolveum,项目名称:midpoint,代码行数:4,代码来源:MidPointLdapAuthenticationProvider.java
示例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);
}
开发者ID:nate-rcl,项目名称:irplus,代码行数:13,代码来源:UrLdapAuthenticationProvider.java
注:本文中的org.springframework.security.ldap.authentication.LdapAuthenticator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论