Record Class SloResponseParameters

java.lang.Object
java.lang.Record
swiss.trustbroker.sso.dto.SloResponseParameters
Record Components:
velocityParameters - parameters for Velocity SLO template
useHttpGet - use HTTP GET for response
redirectUrl - if not null, a redirect to this URL can be performed instead of rendering the Velocity template (for OIDC)

public record SloResponseParameters(Map<String,Object> velocityParameters, boolean useHttpGet, String redirectUrl) extends Record
Contains parameters required for rendering an SLO Logout response.
  • Constructor Details

    • SloResponseParameters

      public SloResponseParameters(Map<String,Object> velocityParameters, boolean useHttpGet, String redirectUrl)
      Creates an instance of a SloResponseParameters record class.
      Parameters:
      velocityParameters - the value for the velocityParameters record component
      useHttpGet - the value for the useHttpGet record component
      redirectUrl - the value for the redirectUrl record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • velocityParameters

      public Map<String,Object> velocityParameters()
      Returns the value of the velocityParameters record component.
      Returns:
      the value of the velocityParameters record component
    • useHttpGet

      public boolean useHttpGet()
      Returns the value of the useHttpGet record component.
      Returns:
      the value of the useHttpGet record component
    • redirectUrl

      public String redirectUrl()
      Returns the value of the redirectUrl record component.
      Returns:
      the value of the redirectUrl record component