|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The UserManagement
interface describes a contract between
the portal and security provider required for Jetspeed Credentials Management.
This interface enables an application to be independent of the underlying
user management technology.
Field Summary | |
static java.lang.String |
SERVICE_NAME
|
Method Summary | |
void |
changePassword(JetspeedUser user,
java.lang.String oldPassword,
java.lang.String newPassword)
Allows for a user to change their own password. |
java.lang.String |
encryptPassword(java.lang.String password)
This method provides client-side encryption of passwords. |
void |
forcePassword(JetspeedUser user,
java.lang.String password)
Forcibly sets new password for a User. |
Methods inherited from interface org.apache.turbine.services.Service |
getConfiguration, getName, getProperties, setName, setServiceBroker |
Methods inherited from interface org.apache.turbine.services.Initable |
getInit, init, init, setInitableBroker, shutdown |
Field Detail |
public static final java.lang.String SERVICE_NAME
Method Detail |
public void changePassword(JetspeedUser user, java.lang.String oldPassword, java.lang.String newPassword) throws JetspeedSecurityException
user
- the user to change the password for.oldPassword
- the current password supplied by the user.newPassword
- the current password requested by the user.
UserException
- when the security provider has a general failure retrieving a user.
UnknownUserException
- when the security provider cannot match
the principal identity to a user.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public void forcePassword(JetspeedUser user, java.lang.String password) throws JetspeedSecurityException
user
- the user to change the password for.password
- the new password.
UserException
- when the security provider has a general failure retrieving a user.
UnknownUserException
- when the security provider cannot match
the principal identity to a user.
InsufficientPrivilegeException
- when the requestor is denied due to insufficient privilege
JetspeedSecurityException
public java.lang.String encryptPassword(java.lang.String password) throws JetspeedSecurityException
secure.passwords
are enabled in JetspeedSecurity properties,
the password will be encrypted, if not, it will be returned unchanged.
The secure.passwords.algorithm
property can be used
to chose which digest algorithm should be used for performing the
encryption. SHA
is used by default.
password
- the password to process
JetspeedSecurityException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |