public static SAML2Config marshalFromAttributeMap(Map<String,Set<String>> smsAttributeMap){
  Set<String> issuerName=smsAttributeMap.get(ISSUER_NAME);
  if (CollectionUtils.isEmpty(issuerName)) {
    return null;
  }
  Map<String,Object> jsonAttributes=MapMarshallUtils.toJsonValueMap(smsAttributeMap);
  jsonAttributes.remove(ATTRIBUTE_MAP);
  Set<String> attributes=smsAttributeMap.get(ATTRIBUTE_MAP);
  Map<String,Object> jsonAttributeMap=new LinkedHashMap<>();
  for (  String entry : attributes) {
    String[] breakdown=entry.split(EQUALS);
    jsonAttributeMap.put(breakdown[0],breakdown[1]);
  }
  jsonAttributes.put(ATTRIBUTE_MAP,new JsonValue(jsonAttributeMap));
  return fromJson(new JsonValue(jsonAttributes));
}

public static SAML2Config marshalFromAttributeMap ( Map < String , Set < String > > smsAttributeMap ) { Set < String > issuerName = smsAttributeMap . get ( ISSUER_NAME ) ; if ( CollectionUtils . isEmpty ( issuerName ) ) { return null ; } Map < String , Object > jsonAttributes = MapMarshallUtils . toJsonValueMap ( smsAttributeMap ) ; jsonAttributes . remove ( ATTRIBUTE_MAP ) ; Set < String > attributes = smsAttributeMap . get ( ATTRIBUTE_MAP ) ; Map < String , Object > jsonAttributeMap = new LinkedHashMap < > ( ) ; for ( String entry : attributes ) { String [ ] breakdown = entry . split ( EQUALS ) ; jsonAttributeMap . put ( breakdown [ 0 ] , breakdown [ 1 ] ) ; } jsonAttributes . put ( ATTRIBUTE_MAP , new JsonValue ( jsonAttributeMap ) ) ; return fromJson ( new JsonValue ( jsonAttributes ) ) ; }
marshals an attribute map into a saml2config
