public enum AttributeSetPropertiesConverter extends Enum<AttributeSetPropertiesConverter> implements PropertiesConverter<com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>>>
The Properties format is defined as in the following XML Properties example:
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <comment>eIDAS attributes</comment> <entry key="1.Name">"http://eidas.europa.eu/attributes/naturalperson/PersonIdentifier</entry> <entry key="1.FriendlyName">PersonIdentifier</entry> <entry key="1.PersonType">NaturalPerson</entry> <entry key="1.Required">true</entry> <entry key="1.UniqueIdentifier">true</entry> <entry key="1.XmlType.NamespaceUri">http://eidas.europa.eu/attributes/naturalperson</entry> <entry key="1.XmlType.LocalPart">PersonIdentifierType</entry> <entry key="1.XmlType.NamespacePrefix">eidas-natural</entry> <entry key="1.AttributeValueMarshaller">eu.eidas.auth.commons.attribute.impl.UnrestrictedStringAttributeValue</entry> <entry key="2.Name">http://eidas.europa.eu/attributes/naturalperson/CurrentFamilyName</entry> <entry key="2.FriendlyName">FamilyName</entry> <entry key="2.PersonType">NaturalPerson</entry> <entry key="2.Required">true</entry> <entry key="2.TransliterationMandatory">true</entry> <entry key="2.XmlType.NamespaceUri">http://eidas.europa.eu/attributes/naturalperson</entry> <entry key="2.XmlType.LocalPart">CurrentFamilyNameType</entry> <entry key="2.XmlType.NamespacePrefix">eidas-natural</entry> <entry key="2.AttributeValueMarshaller">eu.eidas.auth.commons.attribute.impl.StringAttributeValueMarshaller</entry> <entry key="3.Name">http://eidas.europa.eu/attributes/naturalperson/CurrentGivenName</entry> <entry key="3.FriendlyName">FirstName</entry> <entry key="3.PersonType">NaturalPerson</entry> <entry key="3.Required">true</entry> <entry key="3.TransliterationMandatory">true</entry> <entry key="3.XmlType.NamespaceUri">http://eidas.europa.eu/attributes/naturalperson</entry> <entry key="3.XmlType.LocalPart">CurrentGivenNameType</entry> <entry key="3.XmlType.NamespacePrefix">eidas-natural</entry> <entry key="3.AttributeValueMarshaller">eu.eidas.auth.commons.attribute.impl.StringAttributeValueMarshaller</entry> </properties>
PropertiesConverter.IdemConverter, PropertiesConverter.MapPropertiesConverter
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Properties |
marshal(com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> value) |
static com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
toAttributeSet(Map<String,String> properties)
Converts the given Map into an immutable sorted set of
AttributeDefinition s. |
static com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
toAttributeSet(Properties properties)
Converts the given properties into an immutable sorted set of
AttributeDefinition s. |
static com.google.common.collect.ImmutableSortedMap<String,String> |
toMap(Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> attributes)
Converts the given Iterable of
AttributeDefinition s to an immutable sorted Map of Strings. |
static Properties |
toProperties(Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> attributes)
Converts the given Iterable of
AttributeDefinition s to a Properties. |
com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> |
unmarshal(Properties properties) |
static AttributeSetPropertiesConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AttributeSetPropertiesConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AttributeSetPropertiesConverter INSTANCE
public static AttributeSetPropertiesConverter[] values()
for (AttributeSetPropertiesConverter c : AttributeSetPropertiesConverter.values()) System.out.println(c);
public static AttributeSetPropertiesConverter valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Nonnull public static com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> toAttributeSet(@Nonnull Properties properties)
AttributeDefinition
s.properties
- the propertiesAttributeDefinition
s.@Nonnull public static com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> toAttributeSet(@Nonnull Map<String,String> properties)
AttributeDefinition
s.properties
- the MapAttributeDefinition
s.@Nonnull public static com.google.common.collect.ImmutableSortedMap<String,String> toMap(@Nonnull Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> attributes)
AttributeDefinition
s to an immutable sorted Map of Strings.attributes
- the Iterable of AttributeDefinition
s@Nonnull public static Properties toProperties(@Nonnull Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> attributes)
AttributeDefinition
s to a Properties.attributes
- the Iterable of AttributeDefinition
s@Nonnull public Properties marshal(@Nonnull com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> value)
marshal
in interface PropertiesConverter<com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>>>
@Nonnull public com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> unmarshal(@Nonnull Properties properties)
unmarshal
in interface PropertiesConverter<com.google.common.collect.ImmutableSortedSet<eu.eidas.auth.commons.attribute.AttributeDefinition<?>>>
Copyright © 2020. All Rights Reserved.