當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。