private Map<String, String> parseAttributes() throws IOException {
        if (jsonParser.nextToken() != JsonToken.START_OBJECT) {
            throw new JsonParseException("Not a Attributes object", jsonParser.getCurrentLocation());
        }

        Map<String, String> attributes = new HashMap<>();

        while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
            String key = jsonParser.getCurrentName();
            String value = jsonParser.nextTextValue();
            attributes.put(key, value);
        }

        return attributes;
    }
private Map < String , String > parseAttributes ( ) throws IOException { if ( jsonParser . nextToken ( ) != JsonToken . START_OBJECT ) { throw new JsonParseException ( "Not a Attributes object" , jsonParser . getCurrentLocation ( ) ) ; } Map < String , String > attributes = new HashMap < > ( ) ; while ( jsonParser . nextToken ( ) != JsonToken . END_OBJECT ) { String key = jsonParser . getCurrentName ( ) ; String value = jsonParser . nextTextValue ( ) ; attributes . put ( key , value ) ; } return attributes ; }
Parses attributes as a Map, used in both parseWebIdentitySessionContext and parseSessionContext

@return attributes for either session context or web identity session context
@throws IOException