if (ti != null) { TokenCredentials tc = new TokenCredentials(ti.getToken()); Map<String, String> attributes = ti.getPrivateAttributes(); for (String name : attributes.keySet()) { tc.setAttribute(name, attributes.get(name));
Map<String,String> privAttr = info.getPrivateAttributes(); assertEquals("private attributes",privateAttributes.size(), privAttr.size()); for (String key : privateAttributes.keySet()) {
if (ti != null) { TokenCredentials tc = new TokenCredentials(ti.getToken()); ti.getPrivateAttributes().forEach((key, value) -> tc.setAttribute(key, value)); ti.getPublicAttributes().forEach((key, value) -> tc.setAttribute(key, value)); sharedState.put(SHARED_KEY_ATTRIBUTES, ti.getPublicAttributes());
if (ti != null) { TokenCredentials tc = new TokenCredentials(ti.getToken()); ti.getPrivateAttributes().forEach((key, value) -> tc.setAttribute(key, value)); ti.getPublicAttributes().forEach((key, value) -> tc.setAttribute(key, value)); sharedState.put(SHARED_KEY_ATTRIBUTES, ti.getPublicAttributes());