本文整理匯總了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();
}
示例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();
}
示例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();
}