Record Class AuthorizationCodeFlowRequest

java.lang.Object
java.lang.Record
swiss.trustbroker.oidc.client.dto.AuthorizationCodeFlowRequest

public record AuthorizationCodeFlowRequest(String clientId, List<String> scopes, List<String> acrValues, Boolean forceAuthn, String destination, String assertionConsumerUrl, String requestUri) extends Record
Holds information on an OIDC Authorization Code Flow Request for auditing.
  • Constructor Details

    • AuthorizationCodeFlowRequest

      public AuthorizationCodeFlowRequest(String clientId, List<String> scopes, List<String> acrValues, Boolean forceAuthn, String destination, String assertionConsumerUrl, String requestUri)
      Creates an instance of a AuthorizationCodeFlowRequest record class.
      Parameters:
      clientId - the value for the clientId record component
      scopes - the value for the scopes record component
      acrValues - the value for the acrValues record component
      forceAuthn - the value for the forceAuthn record component
      destination - the value for the destination record component
      assertionConsumerUrl - the value for the assertionConsumerUrl record component
      requestUri - the value for the requestUri record component
  • Method Details

    • builder

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • clientId

      public String clientId()
      Returns the value of the clientId record component.
      Returns:
      the value of the clientId record component
    • scopes

      public List<String> scopes()
      Returns the value of the scopes record component.
      Returns:
      the value of the scopes record component
    • acrValues

      public List<String> acrValues()
      Returns the value of the acrValues record component.
      Returns:
      the value of the acrValues record component
    • forceAuthn

      public Boolean forceAuthn()
      Returns the value of the forceAuthn record component.
      Returns:
      the value of the forceAuthn record component
    • destination

      public String destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • assertionConsumerUrl

      public String assertionConsumerUrl()
      Returns the value of the assertionConsumerUrl record component.
      Returns:
      the value of the assertionConsumerUrl record component
    • requestUri

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