/**
* Iterates over the internal list of authentication providers an tries to authenticate.
*
* @param authentication
* The authentication.
* @return The resulting authentication.
*/
public Authentication authenticate(Authentication authentication) {
ProviderManager providerManager = getManager();
if (providerManager != null) {
try {
return providerManager.authenticate(authentication);
} catch (ProviderNotFoundException e) {
// will be thrown if there is no supporting provider, ignore it since we are not
// calling supports methods of the registered providers
}
}
return null;
}
AuthenticationProviderManagement.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:communote-server
作者:
评论列表
文章目录