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 toDEFAULT_APPLICATION_NAME.logoUrl- optional URL of a logo image: a path served by this application, or an absolutehttp(s)URL whose origin the content security policy then allows for images; empty when there is none.- 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 Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theapplicationNamerecord component.static final StringApplication name used when none is configured.private final StringThe field for thefooterTextrecord component.private final StringThe field for thelogoUrlrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionBrandingProperties(String applicationName, String logoUrl, String footerText) Applies the defaults. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationNamerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefooterTextrecord component.final inthashCode()Returns a hash code value for this object.logoUrl()Returns the value of thelogoUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
applicationName
The field for theapplicationNamerecord component. -
logoUrl
The field for thelogoUrlrecord component. -
DEFAULT_APPLICATION_NAME
Application name used when none is configured.- See Also:
-
-
Constructor Details
-
BrandingProperties
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
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
logoUrl
Returns the value of thelogoUrlrecord component.- Returns:
- the value of the
logoUrlrecord component
-