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

public class AcClass extends Object implements Serializable
Authentication Context Class (ACClass).
Since:
1.9.0
See Also:
  • Constructor Details

    • AcClass

      public AcClass()
    • AcClass

      public AcClass(Integer order, Boolean mapInbound, Boolean mapOutbound, Boolean replaceInbound, Boolean downgradeToMaximumRequested, String contextClass)
      Creates a new AcClass instance.
      Parameters:
      order - ACClass QoA order.
      mapInbound - Enable mapping of inbound QoA.
      Default: true, set to false in order to disambiguate mappings.
      mapOutbound - Enable mapping of outbound QoA.
      Default: true, set to false in order to disambiguate mappings.
      replaceInbound - Replace inbound Qoa from RP request. Only works with Qoa.replaceInbound together
      Default: true
      downgradeToMaximumRequested - If this Qoa is returned by the CP, but was not requested by the RP, downgrade it to the maximum Qoa requested by the RP.
      Default: false
      contextClass - ACClass name
      Since:
      1.10.0
  • Method Details

    • applyForDirection

      public boolean applyForDirection(Boolean outbound)
      Parameters:
      outbound - true for outbound, false for inbound, null for both
      Returns:
      true if this mapping is to be applied
    • builder

      public static AcClass.AcClassBuilder builder()
    • getOrder

      public Integer getOrder()
      ACClass QoA order.
    • getMapInbound

      public Boolean getMapInbound()
      Enable mapping of inbound QoA.
      Default: true, set to false in order to disambiguate mappings.
    • getMapOutbound

      public Boolean getMapOutbound()
      Enable mapping of outbound QoA.
      Default: true, set to false in order to disambiguate mappings.
    • getReplaceInbound

      public Boolean getReplaceInbound()
      Replace inbound Qoa from RP request. Only works with Qoa.replaceInbound together
      Default: true
      Since:
      1.10.0
    • getDowngradeToMaximumRequested

      public Boolean getDowngradeToMaximumRequested()
      If this Qoa is returned by the CP, but was not requested by the RP, downgrade it to the maximum Qoa requested by the RP.
      Default: false
    • getContextClass

      public String getContextClass()
      ACClass name
    • setOrder

      public void setOrder(Integer order)
      ACClass QoA order.
    • setMapInbound

      public void setMapInbound(Boolean mapInbound)
      Enable mapping of inbound QoA.
      Default: true, set to false in order to disambiguate mappings.
    • setMapOutbound

      public void setMapOutbound(Boolean mapOutbound)
      Enable mapping of outbound QoA.
      Default: true, set to false in order to disambiguate mappings.
    • setReplaceInbound

      public void setReplaceInbound(Boolean replaceInbound)
      Replace inbound Qoa from RP request. Only works with Qoa.replaceInbound together
      Default: true
      Since:
      1.10.0
    • setDowngradeToMaximumRequested

      public void setDowngradeToMaximumRequested(Boolean downgradeToMaximumRequested)
      If this Qoa is returned by the CP, but was not requested by the RP, downgrade it to the maximum Qoa requested by the RP.
      Default: false
    • setContextClass

      public void setContextClass(String contextClass)
      ACClass name
    • 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