Record Class CreatedClient
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.clients.CreatedClient
- Record Components:
registration- the stored client.clientSecret- the clear-text secret, shown only this once;nullfor a public client.
The result of creating a client.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for theclientSecretrecord component.private final ClientRegistrationThe field for theregistrationrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCreatedClient(ClientRegistration registration, String clientSecret) Creates an instance of aCreatedClientrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientSecretrecord 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 theregistrationrecord component.toString()Describes the result without the secret, so it never reaches a log.
-
Field Details
-
registration
The field for theregistrationrecord component. -
clientSecret
The field for theclientSecretrecord component.
-
-
Constructor Details
-
CreatedClient
Creates an instance of aCreatedClientrecord class.- Parameters:
registration- the value for theregistrationrecord componentclientSecret- the value for theclientSecretrecord component
-
-
Method Details
-
toString
Describes the result without the secret, so it never reaches a log. -
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). -
registration
Returns the value of theregistrationrecord component.- Returns:
- the value of the
registrationrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-