Class AttributeValueCollector

Object
se.curity.identityserver.sdk.attribute.AttributeValueCollector
All Implemented Interfaces:
Collector<Object,List<Object>,Attribute>

public class AttributeValueCollector extends Object implements Collector<Object,List<Object>,Attribute>
Collector of AttributeValues.

This class can be used to collect the items of a List of Comparables as the values of an Attribute.

For example:

 

 Attribute attribute = Arrays.asList(1, 2, "three", false).stream()
     .collect(AttributeValueCollector.toAttribute("attribute_name", "authority"));
 
 

Note: all values of the resulting Attribute instance will have the default format.