public class CmsJlanUsers
extends java.lang.Object
implements org.alfresco.jlan.server.auth.UsersInterface
Since JLAN requires MD4 password hashes for authentication, which are not by default stored in the database, users who want to use the JLAN functionality should log in at least once into OpenCms normally so that the MD4 hash of their password can be computed and stored.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
JLAN_HASH
The additional info key for the MD4 password hash.
|
构造器和说明 |
---|
CmsJlanUsers() |
限定符和类型 | 方法和说明 |
---|---|
org.alfresco.jlan.server.auth.UserAccount |
getUserAccount(java.lang.String userName) |
static byte[] |
hashPassword(java.lang.String password)
Computes an MD4 hash for the password.
|
void |
initializeUsers(org.alfresco.jlan.server.config.ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params) |
static void |
setAdminCms(CmsObject cms)
Sets the CMS context.
|
public static final java.lang.String JLAN_HASH
public static byte[] hashPassword(java.lang.String password) throws java.security.InvalidKeyException, java.security.NoSuchAlgorithmException
password
- the password for which to compute the hashjava.security.NoSuchAlgorithmException
java.security.InvalidKeyException
public static void setAdminCms(CmsObject cms)
cms
- the context to setpublic org.alfresco.jlan.server.auth.UserAccount getUserAccount(java.lang.String userName)
getUserAccount
在接口中 org.alfresco.jlan.server.auth.UsersInterface
UsersInterface.getUserAccount(java.lang.String)
public void initializeUsers(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params)
initializeUsers
在接口中 org.alfresco.jlan.server.auth.UsersInterface
UsersInterface.initializeUsers(org.alfresco.jlan.server.config.ServerConfiguration, org.springframework.extensions.config.ConfigElement)