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

public class Qoa extends Object implements Serializable
Quality of Authentication (QoA) configuration.
See Also:
  • Constructor Details

    • Qoa

      public Qoa()
    • Qoa

      public Qoa(Boolean enforce, Boolean mapOutbound, Boolean singleQoaResponse, QoaComparison comparison, Boolean dropUnmappable, String defaultQoa, Boolean replaceInbound, String claim, List<AcClass> classes)
      Creates a new Qoa instance.
      Parameters:
      enforce - Enable QoA enforcement.
      Default: false
      mapOutbound - Enable mapping of outbound QoA.
      Default: true
      singleQoaResponse - Send single QoA in response (to RP).
      Relevant for comparison EXACT - send maximum matching value instead.
      Default: true
      comparison - Comparison type.
      dropUnmappable - Drop unmapped Qoa from the request
      Default: false
      defaultQoa - Default Qoa if there is none in the response
      replaceInbound - Replace incoming Qoa from the request Only applied on RP side
      Default: false
      claim - Qoa Claim name
      classes - List of SAML AuthnContextClassRef entries.
      If the RP does not send and AuthnRequest class references, the configured context classes are added to the CP-side AuthnRequest to let the CP deal with the QoA requirements of the RP.
      Since:
      1.9.0, 1.9.0, 1.9.0, 1.9.0, 1.10.0, 1.10.0, 1.10.0, 1.10.0
  • Method Details

    • enforce

      public boolean enforce()
    • mapOutbound

      public boolean mapOutbound()
    • useSingleQoaInResponse

      public boolean useSingleQoaInResponse()
    • dropUnmappableQoas

      public boolean dropUnmappableQoas()
    • replaceInboundQoas

      public boolean replaceInboundQoas()
    • builder

      public static Qoa.QoaBuilder builder()
    • getEnforce

      public Boolean getEnforce()
      Enable QoA enforcement.
      Default: false
      Since:
      1.9.0
    • getMapOutbound

      public Boolean getMapOutbound()
      Enable mapping of outbound QoA.
      Default: true
      Since:
      1.9.0
    • getSingleQoaResponse

      public Boolean getSingleQoaResponse()
      Send single QoA in response (to RP).
      Relevant for comparison EXACT - send maximum matching value instead.
      Default: true
      Since:
      1.9.0
    • getComparison

      public QoaComparison getComparison()
      Comparison type.
      Since:
      1.9.0
    • getDropUnmappable

      public Boolean getDropUnmappable()
      Drop unmapped Qoa from the request
      Default: false
      Since:
      1.10.0
    • getDefaultQoa

      public String getDefaultQoa()
      Default Qoa if there is none in the response
      Since:
      1.10.0
    • getReplaceInbound

      public Boolean getReplaceInbound()
      Replace incoming Qoa from the request Only applied on RP side
      Default: false
      Since:
      1.10.0
    • getClaim

      public String getClaim()
      Qoa Claim name
      Since:
      1.10.0
    • getClasses

      public List<AcClass> getClasses()
      List of SAML AuthnContextClassRef entries.
      If the RP does not send and AuthnRequest class references, the configured context classes are added to the CP-side AuthnRequest to let the CP deal with the QoA requirements of the RP.
    • setEnforce

      public void setEnforce(Boolean enforce)
      Enable QoA enforcement.
      Default: false
      Since:
      1.9.0
    • setMapOutbound

      public void setMapOutbound(Boolean mapOutbound)
      Enable mapping of outbound QoA.
      Default: true
      Since:
      1.9.0
    • setSingleQoaResponse

      public void setSingleQoaResponse(Boolean singleQoaResponse)
      Send single QoA in response (to RP).
      Relevant for comparison EXACT - send maximum matching value instead.
      Default: true
      Since:
      1.9.0
    • setComparison

      public void setComparison(QoaComparison comparison)
      Comparison type.
      Since:
      1.9.0
    • setDropUnmappable

      public void setDropUnmappable(Boolean dropUnmappable)
      Drop unmapped Qoa from the request
      Default: false
      Since:
      1.10.0
    • setDefaultQoa

      public void setDefaultQoa(String defaultQoa)
      Default Qoa if there is none in the response
      Since:
      1.10.0
    • setReplaceInbound

      public void setReplaceInbound(Boolean replaceInbound)
      Replace incoming Qoa from the request Only applied on RP side
      Default: false
      Since:
      1.10.0
    • setClaim

      public void setClaim(String claim)
      Qoa Claim name
      Since:
      1.10.0
    • setClasses

      public void setClasses(List<AcClass> classes)
      List of SAML AuthnContextClassRef entries.
      If the RP does not send and AuthnRequest class references, the configured context classes are added to the CP-side AuthnRequest to let the CP deal with the QoA requirements of the RP.
    • 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