1 16 17 package org.apache.jetspeed.services.security.nosecurity; 18 19 import java.util.Vector ; 20 import java.util.Iterator ; 21 import java.security.Principal ; 22 23 import org.apache.turbine.services.TurbineBaseService; 25 26 27 import org.apache.jetspeed.om.security.JetspeedUser; 29 30 import org.apache.jetspeed.services.security.UserManagement; 31 import org.apache.jetspeed.services.security.nosecurity.FakeJetspeedUser; 32 33 import org.apache.jetspeed.services.security.CredentialsManagement; 34 import org.apache.jetspeed.services.security.JetspeedSecurityException; 35 36 45 public class NoUserManagement 46 extends TurbineBaseService 47 implements UserManagement, CredentialsManagement 48 { 49 65 public JetspeedUser getUser(Principal principal) 66 throws JetspeedSecurityException 67 { 68 FakeJetspeedUser user = new FakeJetspeedUser(principal.getName(), false); 70 return user; 71 } 72 73 82 public Iterator getUsers() 83 throws JetspeedSecurityException 84 { 85 return new Vector ().iterator(); 86 } 87 88 98 public Iterator getUsers(String filter) 99 throws JetspeedSecurityException 100 { 101 return new Vector ().iterator(); 102 } 103 104 113 public void saveUser(JetspeedUser user) 114 throws JetspeedSecurityException 115 { 116 } 117 118 130 public void addUser(JetspeedUser user) 131 throws JetspeedSecurityException 132 { 133 } 134 135 146 public void removeUser(Principal principal) 147 throws JetspeedSecurityException 148 { 149 } 150 151 162 public void changePassword( JetspeedUser user, 163 String oldPassword, 164 String newPassword ) 165 throws JetspeedSecurityException 166 { 167 } 168 169 184 public void forcePassword( JetspeedUser user, String password ) 185 throws JetspeedSecurityException 186 { 187 } 188 189 201 public String encryptPassword( String password ) 202 throws JetspeedSecurityException 203 { 204 return password; 205 } 206 } 207 208 | Popular Tags |