当前位置: 首页>>代码示例>>Java>>正文


Java PasswordEncryptor类代码示例

本文整理汇总了Java中org.alfresco.jlan.server.auth.PasswordEncryptor的典型用法代码示例。如果您正苦于以下问题:Java PasswordEncryptor类的具体用法?Java PasswordEncryptor怎么用?Java PasswordEncryptor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


PasswordEncryptor类属于org.alfresco.jlan.server.auth包,在下文中一共展示了PasswordEncryptor类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initialize

import org.alfresco.jlan.server.auth.PasswordEncryptor; //导入依赖的package包/类
/**
 * Initialize the authenticator (after properties have been set)
 * 
 * @exception InvalidConfigurationException
 */
@Override
public void initialize() throws InvalidConfigurationException
{
    super.initialize();

    // Check if the appropriate authentication component type is configured
    AuthenticationComponent authenticationComponent = getAuthenticationComponent();
    if (authenticationComponent instanceof NLTMAuthenticator
            && ((NLTMAuthenticator) authenticationComponent).getNTLMMode() == NTLMMode.MD4_PROVIDER)
        throw new AlfrescoRuntimeException(
                "Wrong authentication setup for passthru authenticator (cannot be used with Alfresco users)");

    // Create the password encryptor

    m_passwordEncryptor = new PasswordEncryptor();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:22,代码来源:PassthruFtpAuthenticator.java

示例2: NTLMAuthenticationProvider

import org.alfresco.jlan.server.auth.PasswordEncryptor; //导入依赖的package包/类
/**
 * Class constructor
 */
public NTLMAuthenticationProvider() {
    
    // Create the passthru authentication server list
    
    m_passthruServers = new PassthruServers();
    
    // Create the password encryptor for local password hashing
    
    m_encryptor = new PasswordEncryptor();
    
    // Create the active session list and reaper thread
    
    m_passthruSessions = new Hashtable<NTLMPassthruToken,AuthenticateSession>();
    m_reaperThread = new PassthruReaperThread();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:19,代码来源:NTLMAuthenticationProvider.java

示例3: NTLMAuthenticationComponentImpl

import org.alfresco.jlan.server.auth.PasswordEncryptor; //导入依赖的package包/类
/**
 * Class constructor
 */
public NTLMAuthenticationComponentImpl() {
            
    // Create the password encryptor for local password hashing
    
    m_encryptor = new PasswordEncryptor();
    
    // Create the active session list and reaper thread
    
    m_passthruSessions = new Hashtable<NTLMPassthruToken,AuthenticateSession>();
    m_reaperThread = new PassthruReaperThread();
}
 
开发者ID:Alfresco,项目名称:alfresco-repository,代码行数:15,代码来源:NTLMAuthenticationComponentImpl.java


注:本文中的org.alfresco.jlan.server.auth.PasswordEncryptor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。