Class FrameOptionsPolicies

java.lang.Object
swiss.trustbroker.config.dto.FrameOptionsPolicies

public class FrameOptionsPolicies extends Object
HTTP Frame Options configuration.
See Also:
  • Field Details

  • Constructor Details

    • FrameOptionsPolicies

      public FrameOptionsPolicies()
    • FrameOptionsPolicies

      public FrameOptionsPolicies(String fallback, String oidc)
      Creates a new FrameOptionsPolicies instance.
      Parameters:
      fallback - No further differentiation here as the FE, API, and SAML URLs are used together.
      Default: SAMEORIGIN
      oidc - /app/device and other api services might run in an application iframe so switch from deny to same origin. Does not work on: Redirects (DENY default applies there still). We make sure in OidcTxResponseWrapper to set SAMEORIGIN instead of DENY just in case.
      Default: SAMEORIGIN
  • Method Details

    • builder

    • getFallback

      public String getFallback()
      No further differentiation here as the FE, API, and SAML URLs are used together.
      Default: SAMEORIGIN
    • getOidc

      public String getOidc()
      /app/device and other api services might run in an application iframe so switch from deny to same origin. Does not work on: Redirects (DENY default applies there still). We make sure in OidcTxResponseWrapper to set SAMEORIGIN instead of DENY just in case.
      Default: SAMEORIGIN
    • setFallback

      public void setFallback(String fallback)
      No further differentiation here as the FE, API, and SAML URLs are used together.
      Default: SAMEORIGIN
    • setOidc

      public void setOidc(String oidc)
      /app/device and other api services might run in an application iframe so switch from deny to same origin. Does not work on: Redirects (DENY default applies there still). We make sure in OidcTxResponseWrapper to set SAMEORIGIN instead of DENY just in case.
      Default: SAMEORIGIN
    • 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