Class ExtraMaterialsDescription

  • All Implemented Interfaces:
    Serializable

    public class ExtraMaterialsDescription
    extends Object
    implements Serializable
    Used to provide additional/supplemental material description (typically on a per-request basis and for more advanced use-case) to supplement the one stored in S3 for crypto material retrieval.
    See Also:
    Serialized Form
    • Method Detail

      • getMaterialDescription

        public Map<String,​String> getMaterialDescription()
        Returns the extra material description; never null.
      • mergeInto

        public Map<String,​String> mergeInto​(Map<String,​String> core)
        Combine this supplemental material descriptions with those specified in the "core" parameter. This method has no side effect.
        Parameters:
        core - the core material descriptions to be supplemented; assumed to be unmodifiable.
        Returns:
        the merged material descriptions; never null. The returned map is always unmodifiable, assuming the passed in core material descriptions are unmodifiable.
        Throws:
        IllegalArgumentException - if this supplemental material descriptions contains conflicting entries
        UnsupportedOperationException - if the conflict resolution strategy is not supported