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