1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.astrogrid.community.client.security.manager ;
19
20 import org.astrogrid.community.client.service.CommunityServiceDelegate ;
21
22 import org.astrogrid.community.common.exception.CommunityServiceException ;
23 import org.astrogrid.community.common.exception.CommunitySecurityException ;
24 import org.astrogrid.community.common.exception.CommunityIdentifierException ;
25
26 /***
27 * Public interface for our SecurityManager delegate.
28 * This mirrors the SecurityManager interface, without the RemoteExceptions.
29 *
30 */
31 public interface SecurityManagerDelegate
32 extends CommunityServiceDelegate
33 {
34
35 /***
36 * Set an Account password.
37 * @param account The account ident.
38 * @param password The account password.
39 * @return True if the password was set.
40 * @throws CommunitySecurityException If the password change fails.
41 * @throws CommunityServiceException If there is an internal error in service.
42 * @throws CommunityIdentifierException If the account identifier is invalid.
43 *
44 */
45 public boolean setPassword(String ident, String value)
46 throws CommunityServiceException, CommunitySecurityException, CommunityIdentifierException ;
47
48 }