1 package org.apache.beehive.wsm.axis.security; 2 3 22 23 import java.util.Collection ; 24 25 public interface User { 26 27 public void setName ( String name ); 28 29 public String getName (); 30 31 public void setPassword ( String password ); 32 33 public String getPassword (); 34 35 public void setMd5 ( boolean isMd5 ); 36 37 public boolean isMd5 (); 38 39 public boolean authenticate ( String password); 40 41 public void addGroup( Group group ); 42 43 public Group getGroup ( String group ); 44 45 public Collection <Group> getGroups (); 46 47 public void addRole( Role role ); 48 49 public Role getRole ( String role ); 50 51 public Collection <Role> getRoles (); 52 53 } 54 55 | Popular Tags |