Record Class TwilioProperties

java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
Record Components:
accountSid - Twilio account SID.
authToken - Twilio auth token (secret).
from - sender phone number in E.164, or blank when a messaging service is used.
messagingServiceSid - SID of the messaging service, or blank when a sender number is used.

@ConfigurationProperties(prefix="authserver.sms.twilio") public record TwilioProperties(String accountSid, String authToken, String from, String messagingServiceSid) extends Record
Twilio credentials and sender, bound from the environment variables AUTHSERVER_SMS_TWILIO_* only; no value is ever written in a file of this repository. Used by the twilio profile.
  • Field Details

    • accountSid

      private final String accountSid
      The field for the accountSid record component.
    • authToken

      private final String authToken
      The field for the authToken record component.
    • from

      private final String from
      The field for the from record component.
    • messagingServiceSid

      private final String messagingServiceSid
      The field for the messagingServiceSid record component.
  • Constructor Details

    • TwilioProperties

      public TwilioProperties(String accountSid, String authToken, String from, String messagingServiceSid)
      Creates an instance of a TwilioProperties record class.
      Parameters:
      accountSid - the value for the accountSid record component
      authToken - the value for the authToken record component
      from - the value for the from record component
      messagingServiceSid - the value for the messagingServiceSid record component
  • Method Details

    • toString

      public 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.
    • accountSid

      public String accountSid()
      Returns the value of the accountSid record component.
      Returns:
      the value of the accountSid record component
    • authToken

      public String authToken()
      Returns the value of the authToken record component.
      Returns:
      the value of the authToken record component
    • from

      public String from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • messagingServiceSid

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