Record Class ClientSeedProperties.SeededClient

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.clients.ClientSeedProperties.SeededClient
Record Components:
redirectUris - redirect URIs of the client in this deployment; empty when the client is not seeded.
postLogoutRedirectUris - URIs the client may send the user to after an OpenID Connect RP-initiated logout (post-logout-redirect-uris); empty when none is configured, in which case no post_logout_redirect_uri is honoured.
Enclosing class:
ClientSeedProperties

public static record ClientSeedProperties.SeededClient(List<String> redirectUris, List<String> postLogoutRedirectUris) extends Record
Seeding of one default client.
  • Field Details

  • Constructor Details

    • SeededClient

      public SeededClient(List<String> redirectUris, List<String> postLogoutRedirectUris)
      Copies the URIs, treating a missing list as an empty one.
  • Method Details

    • unconfigured

      public static ClientSeedProperties.SeededClient unconfigured()
      Creates the section of a client that is not seeded.
      Returns:
      a section without redirect URIs.
    • isConfigured

      public boolean isConfigured()
      Tells whether the client is to be seeded.
      Returns:
      true when at least one redirect URI is configured.
    • 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.
    • redirectUris

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

      public List<String> postLogoutRedirectUris()
      Returns the value of the postLogoutRedirectUris record component.
      Returns:
      the value of the postLogoutRedirectUris record component