attrNames.add("urn:perun:user:attribute-def:def:organization"); mail = sess.getPerunPrincipal().getAdditionalInformations().get("mail"); name = sess.getPerunPrincipal().getAdditionalInformations().get("cn"); name = sess.getPerunPrincipal().getAdditionalInformations().get("displayName");
@Override public String getConsolidatorToken(PerunSession sess) throws PerunException { Map<String, Object> value = new HashMap<String, Object>(); String actor = sess.getPerunPrincipal().getActor(); String extSourceName = sess.getPerunPrincipal().getExtSourceName(); String extSourceType = sess.getPerunPrincipal().getExtSourceType(); Integer extSourceLoa = sess.getPerunPrincipal().getExtSourceLoa(); User user = sess.getPerunPrincipal().getUser(); value.put("actor", actor); value.put("extSourceName", extSourceName); value.put("extSourceType", extSourceType); value.put("extSourceLoa", extSourceLoa); value.put("user", user); value.put("additionalInformation", sess.getPerunPrincipal().getAdditionalInformations()); // create token from actual properties String token = registrarManager.getMailManager().getMessageAuthenticationCode(System.currentTimeMillis() + actor + extSourceName + extSourceType + extSourceLoa); requestCache.putIfAbsent(token, value); return token; }
String extSourceType = sess.getPerunPrincipal().getExtSourceType(); int extSourceLoa = sess.getPerunPrincipal().getExtSourceLoa(); Map<String, String> federValues = sess.getPerunPrincipal().getAdditionalInformations();
map.putAll(session.getPerunPrincipal().getAdditionalInformations()); String additionalAttrs = BeansUtils.attributeValueToString(map, LinkedHashMap.class.getName()); application.setFedInfo(additionalAttrs);
sess.getPerunPrincipal().getExtSourceName(), sess.getPerunPrincipal().getExtSourceType(), sess.getPerunPrincipal().getExtSourceLoa()); ((PerunBlImpl)perun).setUserExtSourceAttributes(sess, ues, sess.getPerunPrincipal().getAdditionalInformations());