return null;
}
public static String getUser(Credentials credentials) {
if (credentials instanceof SimpleCredentials) {
final SimpleCredentials simpleCredentials = (SimpleCredentials) credentials;
final Object attribute = simpleCredentials.getAttribute(XingLogin.AUTHENTICATION_CREDENTIALS_USERDATA_KEY);
if (attribute instanceof String) {
try {
final String base64Json = (String) attribute;
final byte[] decoded = Base64.decodeBase64(base64Json);
return new String(decoded, "UTF-8");