Class AttributeRegistry

java.lang.Object
swiss.trustbroker.common.saml.util.AttributeRegistry

public class AttributeRegistry extends Object
Registry for attribute names populated through AttributeInitializer implementations and from configuration.
See Also:
  • AttributeInitializer
  • Method Summary

    Modifier and Type
    Method
    Description
    static swiss.trustbroker.api.sessioncache.dto.AttributeName
     
    static void
    putAttributeName(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute)
    Stores the values of the attribute in the registry along with the attribute.
    static void
    updateAttributeNameFromConfig(swiss.trustbroker.api.sessioncache.dto.AttributeName attribute)
    Stores the values of the attribute in the registry along with the attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • forName

      public static swiss.trustbroker.api.sessioncache.dto.AttributeName forName(String name)
    • 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