本文整理汇总了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();
}