Record Class ClientSeedProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.clients.ClientSeedProperties
- Record Components:
bffSecret- clear-text secret of thebffclient; empty ornullwhen not configured.bff- seeding of thebffclient; nevernullonce constructed.spaPublic- seeding of thespa-publicclient; nevernullonce constructed.
@ConfigurationProperties(prefix="authserver.clients")
public record ClientSeedProperties(String bffSecret, ClientSeedProperties.SeededClient bff, ClientSeedProperties.SeededClient spaPublic)
extends Record
Configuration of the seeding of the default clients (
authserver.clients.*).
Which clients are seeded, and where they redirect, is a property of the deployment: a client is seeded only when
its redirect URIs are configured, and nothing is configured by default (the dev profile sets the local
ones). Secrets come from the environment only and are never committed: the property resolves to an empty value
when the environment variable is not set, and a confidential client without a secret is then not seeded.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSeeding of one default client. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClientSeedProperties.SeededClientThe field for thebffrecord component.private final StringThe field for thebffSecretrecord component.private final ClientSeedProperties.SeededClientThe field for thespaPublicrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientSeedProperties(String bffSecret, ClientSeedProperties.SeededClient bff, ClientSeedProperties.SeededClient spaPublic) Replaces a missing client section by an unconfigured one. -
Method Summary
Modifier and TypeMethodDescriptionbff()Returns the value of thebffrecord component.Returns the value of thebffSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespaPublicrecord component.toString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ClientSeedProperties
public ClientSeedProperties(String bffSecret, ClientSeedProperties.SeededClient bff, ClientSeedProperties.SeededClient spaPublic) Replaces a missing client section by an unconfigured one.
-
-
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). -
bffSecret
Returns the value of thebffSecretrecord component.- Returns:
- the value of the
bffSecretrecord component
-
bff
Returns the value of thebffrecord component.- Returns:
- the value of the
bffrecord component
-
spaPublic
Returns the value of thespaPublicrecord component.- Returns:
- the value of the
spaPublicrecord component
-