public final class AttributeRegistries extends Object
AttributeRegistry
.Modifier and Type | Method and Description |
---|---|
static AttributeRegistry |
copyOf(AttributeRegistry attributeRegistry,
AttributeRegistry... otherRegistries)
Copies an attribute registry in memory from another existing AttributeRegistry.
|
static AttributeRegistry |
empty()
Returns an empty immutable registry.
|
static AttributeRegistry |
fromFile(String fileName)
Creates an attribute registry based on the given configuration file.
|
static AttributeRegistry |
fromFile(String fileName,
String defaultPath)
Creates an attribute registry based on the given configuration file.
|
static AttributeRegistry |
fromFiles(String fileName,
String defaultPath,
String... fileNames)
Creates an attribute registry based on the given configuration files.
|
static AttributeRegistry |
of(eu.eidas.auth.commons.attribute.AttributeDefinition<?>... definitions)
Creates an attribute registry based on the given AttributeDefinitions.
|
static AttributeRegistry |
of(Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> definitions)
Creates an attribute registry based on the given AttributeDefinitions.
|
@Nonnull public static AttributeRegistry copyOf(@Nonnull AttributeRegistry attributeRegistry, @Nullable AttributeRegistry... otherRegistries)
attributeRegistry
- the attribute registry to copy.otherRegistries
- the other attribute registry@Nonnull public static AttributeRegistry empty()
This convenient method is equivalent to calling:
AttributeRegistry empty = AttributeRegistries.of();
@Nonnull public static AttributeRegistry fromFile(@Nonnull String fileName)
The given file must comply with the attribute registry format (see AttributeSetPropertiesConverter
.
fileName
- the name of the configuration file.@Nonnull public static AttributeRegistry fromFile(@Nonnull String fileName, @Nullable String defaultPath)
The given file must comply with the attribute registry format (see AttributeSetPropertiesConverter
.
fileName
- the name of the configuration file.defaultPath
- optional path to registry file.@Nonnull public static AttributeRegistry fromFiles(@Nonnull String fileName, @Nullable String defaultPath, @Nonnull String... fileNames)
The given files must comply with the attribute registry format (see AttributeSetPropertiesConverter
.
fileName
- the name of the first configuration file.defaultPath
- the default pathfileNames
- the names of the other configuration files.@Nonnull public static AttributeRegistry of(@Nonnull Iterable<eu.eidas.auth.commons.attribute.AttributeDefinition<?>> definitions)
definitions
- the attribute definitions constituting the registry.@Nonnull public static AttributeRegistry of(@Nonnull eu.eidas.auth.commons.attribute.AttributeDefinition<?>... definitions)
definitions
- the attribute definitions constituting the registry.Copyright © 2020. All Rights Reserved.