Record Class OttDestination
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.ott.OttDestination
- Record Components:
userId- identifier of the user.channel- the channel.address- the e-mail address or the E.164 phone number.
Where a one-time code of a user is delivered.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOttDestination(UUID userId, OttChannel channel, String address) Validates the destination. -
Method Summary
Modifier and TypeMethodDescriptionaddress()Returns the value of theaddressrecord component.channel()Returns the value of thechannelrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.toString()Describes the destination without the address, so it never reaches a log.userId()Returns the value of theuserIdrecord component.
-
Field Details
-
Constructor Details
-
OttDestination
Validates the destination.- Throws:
IllegalArgumentException- if a component is missing or the address is blank.
-
-
Method Details
-
toString
Describes the destination without the address, 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). -
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
channel
Returns the value of thechannelrecord component.- Returns:
- the value of the
channelrecord component
-
address
Returns the value of theaddressrecord component.- Returns:
- the value of the
addressrecord component
-