Class ClientRedirectValidation.ClientRedirectResponse

java.lang.Object
com.broadleafcommerce.auth.server.service.ClientRedirectValidation.ClientRedirectResponse
Enclosing class:
ClientRedirectValidation

public static class ClientRedirectValidation.ClientRedirectResponse extends Object
Encapsulates the result of a redirect URI validation.
  • Constructor Details

    • ClientRedirectResponse

      public ClientRedirectResponse(boolean valid, String sanitizedUrl)
      Creates a new ClientRedirectResponse instance.
      Parameters:
      valid - Whether the requested redirect URI is valid and trusted for the client.
      sanitizedUrl - The URL to use for redirection.

      If isValid() is true, this is the original requested URL. If isValid() is false, this is the default fallback URL configured for the client.

    • ClientRedirectResponse

      public ClientRedirectResponse()
  • Method Details

    • isValid

      public boolean isValid()
      Whether the requested redirect URI is valid and trusted for the client.
    • getSanitizedUrl

      public String getSanitizedUrl()
      The URL to use for redirection.

      If isValid() is true, this is the original requested URL. If isValid() is false, this is the default fallback URL configured for the client.

    • setValid

      public void setValid(boolean valid)
      Whether the requested redirect URI is valid and trusted for the client.
    • setSanitizedUrl

      public void setSanitizedUrl(String sanitizedUrl)
      The URL to use for redirection.

      If isValid() is true, this is the original requested URL. If isValid() is false, this is the default fallback URL configured for the client.

    • 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