Class AttributeRegistry
java.lang.Object
swiss.trustbroker.common.saml.util.AttributeRegistry
Registry for attribute names populated through AttributeInitializer implementations and from configuration.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic swiss.trustbroker.api.sessioncache.dto.AttributeNamestatic voidputAttributeName(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute) Stores the values of the attribute in the registry along with the attribute.static voidupdateAttributeNameFromConfig(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute) Stores the values of the attribute in the registry along with the attribute.
-
Method Details
-
forName
-
updateAttributeNameFromConfig
public static void updateAttributeNameFromConfig(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute) Stores the values of the attribute in the registry along with the attribute. If a value already exists, it is not overwritten, but the instance's values may be updated.- Parameters:
attribute- if 'name' is present already in the registry, and the present value is a MutableAttributeName, the other fields of the input are updated from this parameter's values
-
putAttributeName
public static void putAttributeName(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute) Stores the values of the attribute in the registry along with the attribute. If a value already exists, it is not overwritten or updated. This method is to be used by normal AttributeInitializer should use.- Parameters:
attribute- stored in the registry unless the names are already present
-