Record Class BrandingProperties

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.login.BrandingProperties
Record Components:
applicationName - name shown in the page header and title; defaults to DEFAULT_APPLICATION_NAME.
logoUrl - optional URL of a logo image: a path served by this application, or an absolute http(s) URL whose origin the content security policy then allows for images; empty when there is none.
footerText - optional text shown below every page; empty when there is none.

@ConfigurationProperties("authserver.ui.branding") public record BrandingProperties(String applicationName, String logoUrl, String footerText) extends Record
Branding shown by the login, consent, logout and error pages, bound from authserver.ui.branding.*.
  • Field Details

    • applicationName

      private final String applicationName
      The field for the applicationName record component.
    • logoUrl

      private final String logoUrl
      The field for the logoUrl record component.
    • footerText

      private final String footerText
      The field for the footerText record component.
    • DEFAULT_APPLICATION_NAME

      public static final String DEFAULT_APPLICATION_NAME
      Application name used when none is configured.
      See Also:
  • Constructor Details

    • BrandingProperties

      public BrandingProperties(String applicationName, String logoUrl, String footerText)
      Applies the defaults.
      Parameters:
      applicationName - name shown in the page header, blank for the default.
      logoUrl - optional logo URL, blank for none.
      footerText - optional footer text, blank for none.
  • 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. 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.
    • applicationName

      public String applicationName()
      Returns the value of the applicationName record component.
      Returns:
      the value of the applicationName record component
    • logoUrl

      public String logoUrl()
      Returns the value of the logoUrl record component.
      Returns:
      the value of the logoUrl record component
    • footerText

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