Uses of Record Class
com.irurueta.authserver.authorization.domain.sms.PhoneNumber
Packages that use PhoneNumber
Package
Description
Use cases of the SMS channel: phone enrolment and verification, cost-capped sending of codes and the enrolment
query of the SMS second factor.
Phones and text messages: the phone number value object, the phone a user verified, the ports to send messages,
keep phones and pending verifications, record the spend, and the policy that caps the cost.
PostgreSQL implementations of the SMS ports: the verified phone numbers and the phone verifications in progress
(both over the
user_phones table) and the SMS cost ledger (over the sms_cost_ledger table).SMS adapter of the authorization server: the logging default sender with its bounded outbox, the Twilio and Amazon
SNS gateways (each enabled by its own profile) and the libphonenumber normaliser.
-
Uses of PhoneNumber in com.irurueta.authserver.authorization.application.sms
Fields in com.irurueta.authserver.authorization.application.sms declared as PhoneNumberModifier and TypeFieldDescriptionprivate final PhoneNumberSmsRequested.toThe field for thetorecord component.Methods in com.irurueta.authserver.authorization.application.sms that return PhoneNumberModifier and TypeMethodDescriptionSmsRequested.to()Returns the value of thetorecord component.Methods in com.irurueta.authserver.authorization.application.sms with parameters of type PhoneNumberModifier and TypeMethodDescriptionvoidSendSmsOneTimeCodeUseCase.execute(PhoneNumber to, String text) Reserves the cost of a message and requests it.private voidStartPhoneEnrolmentUseCase.send(PhoneNumber number, String code) Requests the code, swallowing a refusal so that it cannot be told apart from success.Constructors in com.irurueta.authserver.authorization.application.sms with parameters of type PhoneNumber -
Uses of PhoneNumber in com.irurueta.authserver.authorization.domain.sms
Fields in com.irurueta.authserver.authorization.domain.sms declared as PhoneNumberModifier and TypeFieldDescriptionprivate final PhoneNumberPhoneVerification.phoneThe field for thephonerecord component.private final PhoneNumberUserPhone.phoneThe field for thephonerecord component.private final PhoneNumberSmsInboxEntry.toThe field for thetorecord component.private final PhoneNumberSmsMessage.toThe field for thetorecord component.Methods in com.irurueta.authserver.authorization.domain.sms that return PhoneNumberModifier and TypeMethodDescriptionPhoneVerification.phone()Returns the value of thephonerecord component.UserPhone.phone()Returns the value of thephonerecord component.SmsInboxEntry.to()Returns the value of thetorecord component.SmsMessage.to()Returns the value of thetorecord component.Methods in com.irurueta.authserver.authorization.domain.sms that return types with arguments of type PhoneNumberModifier and TypeMethodDescriptionNormalizes a number.Methods in com.irurueta.authserver.authorization.domain.sms with parameters of type PhoneNumberModifier and TypeMethodDescriptionPhoneCountryResolver.countryOf(PhoneNumber phone) Finds the country of a number.UserPhoneRepository.findByPhone(PhoneNumber phone) Finds the verified phone that holds a number.voidSmsSender.send(PhoneNumber to, String text) Sends a text message.Constructors in com.irurueta.authserver.authorization.domain.sms with parameters of type PhoneNumberModifierConstructorDescriptionPhoneVerification(UUID userId, PhoneNumber phone, String codeHash, int attempts, Instant expiresAt) Validates the verification.SmsInboxEntry(PhoneNumber to, String text, Instant sentAt) Validates the entry.SmsMessage(PhoneNumber to, String body) Validates the message.UserPhone(UUID userId, PhoneNumber phone, Instant verifiedAt) Validates the phone. -
Uses of PhoneNumber in com.irurueta.authserver.authorization.infrastructure.persistence.sms
Methods in com.irurueta.authserver.authorization.infrastructure.persistence.sms with parameters of type PhoneNumber -
Uses of PhoneNumber in com.irurueta.authserver.authorization.infrastructure.sms
Fields in com.irurueta.authserver.authorization.infrastructure.sms declared as PhoneNumberModifier and TypeFieldDescriptionprivate final PhoneNumberSentSms.toThe field for thetorecord component.Methods in com.irurueta.authserver.authorization.infrastructure.sms that return PhoneNumberMethods in com.irurueta.authserver.authorization.infrastructure.sms that return types with arguments of type PhoneNumberModifier and TypeMethodDescriptionMethods in com.irurueta.authserver.authorization.infrastructure.sms with parameters of type PhoneNumberModifier and TypeMethodDescriptionLibPhoneNumberCountryResolver.countryOf(PhoneNumber phone) voidLoggingSmsSender.send(PhoneNumber to, String text) voidSnsSmsSender.send(PhoneNumber to, String text) voidTwilioSmsSender.send(PhoneNumber to, String text) Constructors in com.irurueta.authserver.authorization.infrastructure.sms with parameters of type PhoneNumberModifierConstructorDescriptionSentSms(PhoneNumber to, String text, Instant sentAt) Validates the record.