Modifier and Type | Field and Description |
---|---|
static String |
RMI_USERSERVICE_APPLICATION_NAME
Name of the user service application in the registry.
|
Modifier and Type | Method and Description |
---|---|
void |
changePassword(int token,
int id,
String oldPassword,
String newPassword) |
<Type extends UserManagementItem> |
clone(int token,
int id,
Type item,
Class<Type> type)
The original user will be retrieved by id.
|
<Type extends UserManagementItem> |
create(int token,
Type user,
Class<Type> type)
Creates a new user.
|
String |
decrypt(int token,
String toEncrypt)
Decrypt a String in the context of the server and user.
|
<Type extends UserManagementItem> |
delete(int token,
int id,
Class<Type> type)
Deletes an item.
|
String |
encrypt(int token,
String toEncrypt)
Encrypt a String in the context of the server and user.
|
<Type extends UserManagementItem> |
find(int token,
SearchOptions<Type> options)
Finds items by searching for the specified values in the specified fields.
|
com.saperion.jcs.modules.authentication.api.AccessToken<String> |
generate(int token,
long expires,
TimeUnit unit,
Collection<String> additionalOptions)
Generates an AccessToken which can be used with the help of the UsernameAccessTokenKey to
login into SAPERION.
|
<Type extends UserManagementItem> |
getDescriptor(int token,
Class<Type> type)
Gets the descriptor of an item-type.
|
void |
setPassword(int token,
int userId,
String newPassword)
Sets a new password to a user.
|
<Type extends UserManagementItem> |
update(int token,
Type item,
Class<Type> type)
Updates the respective item in the Backend.
|
static final String RMI_USERSERVICE_APPLICATION_NAME
@Privileged <Type extends UserManagementItem> Type create(int token, Type user, Class<Type> type) throws RemoteException
token
- token to identify the user who wants to create another useruser
- the new userRemoteException
- remote exception<Type extends UserManagementItem> Set<Type> find(int token, SearchOptions<Type> options) throws RemoteException
token
- token to identify the user who wants to search for other usersfields
- fields-values-map to use in search. Available fields can be obtained by getting a
descriptor.type
- the type of item to search for. Can be any class that extends
UserManagementItem
op
- RemoteException
- remote exception<Type extends UserManagementItem> Descriptor<Type> getDescriptor(int token, Class<Type> type) throws RemoteException
Type
- any class that extends UserManagementItem
token
- token for identificationtype
- the type of the item. Can be any class that extends UserManagementItem
RemoteException
- remote exception@Privileged <Type extends UserManagementItem> void delete(int token, int id, Class<Type> type) throws RemoteException
Type
- any class that extends UserManagementItem
token
- token for identificationid
- the id of the itemtype
- the type of the item. Can be any class that extends UserManagementItem
RemoteException
- remote exception<Type extends UserManagementItem> Type update(int token, Type item, Class<Type> type) throws RemoteException
Type
- any class that extends UserManagementItem
token
- token for identificationitem
- the item which should be updated. Must contain all attributestype
- the type of the item. Can be any class that extends UserManagementItem
RemoteException
- remote exception<Type extends UserManagementItem> Type clone(int token, int id, Type item, Class<Type> type) throws RemoteException
token
- session tokenid
- id of the original useritem
- cloned itemtype
- Type of the item which should be createdRemoteException
void changePassword(int token, int id, String oldPassword, String newPassword) throws RemoteException
token
- A valid Token for your SessionoldPassword
- old passwordnewPassword
- new passwordRemoteException
- Exception if the Password couldn't be changed@Privileged void setPassword(int token, int userId, String newPassword) throws RemoteException
token
- A valid Token for your Session.userId
- the id of the user to change the password for - may not be null or empty. The user must exist in the system.newPassword
- new password - may not be null or empty.RemoteException
- Exception if the Password couldn't be changedString encrypt(int token, String toEncrypt) throws RemoteException
token
- A valid Token for your SessiontoEncrypt
- the string which should be encryptedRemoteException
- if the string couldn't be encryptedString decrypt(int token, String toEncrypt) throws RemoteException
token
- A valid Token for your SessiontoEncrypt
- the encrypted string which should be decryptedRemoteException
- if the string couldn't be decryptedcom.saperion.jcs.modules.authentication.api.AccessToken<String> generate(int token, long expires, TimeUnit unit, Collection<String> additionalOptions) throws RemoteException
token
- A valid Token for your Sessionexpires
- count of seconds if unit == TimeUnit.SECONDSunit
- TimeUnit
additionalOptions
- Values which will be encoded into the token, which must be passed with the loginRemoteException
Copyright © 2016 SAPERION AG. All rights reserved.