Class IdmResult

java.lang.Object
swiss.trustbroker.api.idm.dto.IdmResult

public class IdmResult extends Object
Result of IDM lookup.
  • userDetails are values from the source.
    They are filtered via RelyingParty UserDetailsSelection.
  • properties are values derived from the attributes.
    They are filtered via RelyingParty PropertiesSelection.
The counts of the two before filtering are returned separately.
  • Constructor Details

    • IdmResult

      public IdmResult(Map<AttributeName,List<String>> userDetails, int originalUserDetailsCount, Map<AttributeName,List<String>> properties, int originalPropertiesCount, Set<String> queriedStores, Map<Object,Object> additionalData)
      Creates a new IdmResult instance.
      Parameters:
      userDetails -
      originalUserDetailsCount -
      properties -
      originalPropertiesCount -
      queriedStores - Returns the store(s) actually queried - including those that did not find a result.
      Currently this data is passed, to the IdmProvisioningService implementations.
      additionalData - This is not consumed directly by the XTB core code, but may be passed to other interfaces.
      The map key indicates the source of the data. It can be used by the implementations to match related interface implementations in order to share internal data structures such as lookup results.
      Currently this data is passed, to the IdmProvisioningService implementations.
      Since:
      1.12.0, 1.9.0
      See Also:
    • IdmResult

      public IdmResult()
  • Method Details

    • addOriginalUserDetailsCount

      public void addOriginalUserDetailsCount(int count)
      Parameters:
      count - Count to add to the current original user details count.
      Since:
      1.15.0
    • addOriginalPropertiesCount

      public void addOriginalPropertiesCount(int count)
      Parameters:
      count - Count to add to the current original properties count.
      Since:
      1.15.0
    • builder

      public static IdmResult.IdmResultBuilder builder()
    • getUserDetails

      public Map<AttributeName,List<String>> getUserDetails()
    • getOriginalUserDetailsCount

      public int getOriginalUserDetailsCount()
    • getProperties

      public Map<AttributeName,List<String>> getProperties()
    • getOriginalPropertiesCount

      public int getOriginalPropertiesCount()
    • getQueriedStores

      public Set<String> getQueriedStores()
      Returns the store(s) actually queried - including those that did not find a result.
      Currently this data is passed, to the IdmProvisioningService implementations.
      Since:
      1.12.0
      See Also:
    • getAdditionalData

      public Map<Object,Object> getAdditionalData()
      This is not consumed directly by the XTB core code, but may be passed to other interfaces.
      The map key indicates the source of the data. It can be used by the implementations to match related interface implementations in order to share internal data structures such as lookup results.
      Currently this data is passed, to the IdmProvisioningService implementations.
      Since:
      1.9.0
      See Also:
    • setUserDetails

      public void setUserDetails(Map<AttributeName,List<String>> userDetails)
    • setOriginalUserDetailsCount

      public void setOriginalUserDetailsCount(int originalUserDetailsCount)
    • setProperties

      public void setProperties(Map<AttributeName,List<String>> properties)
    • setOriginalPropertiesCount

      public void setOriginalPropertiesCount(int originalPropertiesCount)
    • setQueriedStores

      public void setQueriedStores(Set<String> queriedStores)
      Returns the store(s) actually queried - including those that did not find a result.
      Currently this data is passed, to the IdmProvisioningService implementations.
      Since:
      1.12.0
      See Also:
    • setAdditionalData

      public void setAdditionalData(Map<Object,Object> additionalData)
      This is not consumed directly by the XTB core code, but may be passed to other interfaces.
      The map key indicates the source of the data. It can be used by the implementations to match related interface implementations in order to share internal data structures such as lookup results.
      Currently this data is passed, to the IdmProvisioningService implementations.
      Since:
      1.9.0
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object