Class SubjectName

java.lang.Object
swiss.trustbroker.federation.xmlconfig.SubjectName
All Implemented Interfaces:
Serializable

public class SubjectName extends Object implements Serializable
The SubjectName map allows to pick an attribute as a mapped subject nameId from the following sources in this order:
  1. AttributesSelection
  2. >UserDetailsSelection
  3. PropertiesSelection
If the issuer is defined, the picking is done per CP. If the issuer is null, the configuration applies to all CPs.
If the attribute...
  • is found: CPResponse.nameID is set before the OnResponse hook (RP side) / BeforeIdm hook (CP side) and an INFO log states the mapping/
  • is not found: An INFO log states what has been preserved.
Breaking changes:
  • With 1.9.0 change attribute source to claim. The semantics of the former was changed to align it with the source concept used elsewhere.
See Also:
  • Constructor Details

    • SubjectName

      public SubjectName()
    • SubjectName

      public SubjectName(String source, String claim, String format, SubjectNameScope scope)
      Creates a new SubjectName instance.
      Parameters:
      source - Matched against the CP/CP:issuer/IDM/IDM:IDMQuery.name/PROPS
      claim - Subject Name ID claim name.
      format - Subject Name ID format.
      scope - Scope of the SubjectName
      Since:
      1.9.0, 1.13.0
  • Method Details

    • builder

      public static SubjectName.SubjectNameBuilder builder()
    • getSource

      public String getSource()
      Matched against the CP/CP:issuer/IDM/IDM:IDMQuery.name/PROPS
    • getClaim

      public String getClaim()
      Subject Name ID claim name.
      Since:
      1.9.0
    • getFormat

      public String getFormat()
      Subject Name ID format.
    • getScope

      public SubjectNameScope getScope()
      Scope of the SubjectName
      Since:
      1.13.0
    • setSource

      public void setSource(String source)
      Matched against the CP/CP:issuer/IDM/IDM:IDMQuery.name/PROPS
    • setClaim

      public void setClaim(String claim)
      Subject Name ID claim name.
      Since:
      1.9.0
    • setFormat

      public void setFormat(String format)
      Subject Name ID format.
    • setScope

      public void setScope(SubjectNameScope scope)
      Scope of the SubjectName
      Since:
      1.13.0
    • 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