Back to project page you2peer.
The source code is released under:
Apache License
If you think the Android project you2peer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.u2p.messages; /*from ww w. j av a 2 s .co m*/ import java.io.Serializable; import java.util.HashMap; public class Authentication implements Serializable { private HashMap<String,String> groups; private String user; /** * */ private static final long serialVersionUID = 1L; public Authentication(String user){ this.user=user; groups=new HashMap<String,String>(); } public void setGroups(HashMap<String,String> groups){ this.groups=groups; } public void addGroup(String group,String hash){ if(!groups.containsKey(group)){ groups.put(group, hash); } } public HashMap<String,String> getGroups(){ return this.groups; } public String getUser(){ return this.user; } }