added encoder decoder base 64 util from js
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/social-networking-library@79375 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
f600bab229
commit
a2070fd273
8712
.gwt/.gwt-log
8712
.gwt/.gwt-log
File diff suppressed because it is too large
Load Diff
|
@ -8,6 +8,7 @@ import com.google.gwt.core.client.EntryPoint;
|
|||
public class GCubeSocialNetworking implements EntryPoint {
|
||||
|
||||
public static final String USER_PROFILE_LINK = "/group/data-e-infrastructure-gateway/profile";
|
||||
public static final String USER_PROFILE_OID = "userIdentificationParameter";
|
||||
public void onModuleLoad() {
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
package org.gcube.portal.databook.client.util;
|
||||
/**
|
||||
* simply encode base64 strings
|
||||
* @author massi
|
||||
*
|
||||
*/
|
||||
public class Encoder {
|
||||
public static native String encode(String toEncode) /*-{
|
||||
return btoa(toEncode);
|
||||
}-*/;
|
||||
|
||||
public static native String decode(String toDecode) /*-{
|
||||
return atob(toDecode);
|
||||
}-*/;
|
||||
}
|
Loading…
Reference in New Issue