Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- accountSid - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
The field for the
accountSidrecord component. - accountSid() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns the value of the
accountSidrecord component. - add(SentSms) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Records a message, evicting the oldest ones beyond the capacity.
- afterPropertiesSet() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.MissingSmsGatewayConfiguration
-
Refuses to start.
- authToken - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
The field for the
authTokenrecord component. - authToken() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns the value of the
authTokenrecord component.
C
- capacity - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Maximum number of messages kept.
- capacity - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
The field for the
capacityrecord component. - capacity() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Returns the value of the
capacityrecord component. - client - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.SnsSmsSender
-
SNS client.
- client - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioSmsSender
-
SDK wrapper.
- clock - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
-
Source of the recording instant.
- com.irurueta.authserver.authorization.infrastructure.sms - package com.irurueta.authserver.authorization.infrastructure.sms
-
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.
- countryOf(PhoneNumber) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberCountryResolver
D
- DEFAULT_CAPACITY - Static variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Capacity used when none is configured.
E
- entries() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Lists the recorded messages as the inbox port describes them.
- equals(Object) - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Indicates whether some other object is "equal to" this one.
F
- FAILURE_MESSAGE - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.SnsSmsSender
-
Generic failure description.
- FAILURE_MESSAGE - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioSmsSender
-
Generic failure description.
- from - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioMessageClient
-
Sender number, or
nullwhen a messaging service is used. - from - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
The field for the
fromrecord component. - from() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns the value of the
fromrecord component.
H
- hashCode() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns a hash code value for this object.
L
- LibPhoneNumberCountryResolver - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
PhoneCountryResolverover libphonenumber: the region of an E.164 number. - LibPhoneNumberCountryResolver() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberCountryResolver
- LibPhoneNumberNormalizer - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
PhoneNormalizerbacked by Google libphonenumber: accepts only valid numbers and never throws. - LibPhoneNumberNormalizer() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberNormalizer
- LOGGING_SENDER_PROFILES - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
-
Profiles under which the logging sender (and its outbox) is used: development or tests, and no gateway.
- loggingSmsSender(SmsOutbox, Clock) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
-
Creates the logging sender of development and tests.
- LoggingSmsSender - Class in com.irurueta.authserver.authorization.infrastructure.sms
- LoggingSmsSender() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
M
- MESSAGE - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.MissingSmsGatewayConfiguration
-
Message of the startup failure.
- messages - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Messages, oldest first.
- messages() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Reads the recorded messages.
- messagingServiceSid - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioMessageClient
-
Messaging service SID, or
nullwhen a sender number is used. - messagingServiceSid - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
The field for the
messagingServiceSidrecord component. - messagingServiceSid() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns the value of the
messagingServiceSidrecord component. - MissingSmsGatewayConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Stops the startup when no SMS gateway is configured: none of the profiles that provide an
SmsSender(twilio,sns, ordev/testfor the logging one) is active. - MissingSmsGatewayConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.MissingSmsGatewayConfiguration
N
- NO_SENDER_PROFILES - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.MissingSmsGatewayConfiguration
-
Profiles under which no sender is defined.
- normalize(String, String) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberNormalizer
O
- outbox - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
-
Records the messages.
P
- phoneCountryResolver() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
-
Creates the resolver of the country of a phone number.
- phoneNormalizer() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
-
Creates the phone normaliser.
- phoneNumberUtil - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberCountryResolver
-
The libphonenumber entry point.
R
- restClient - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioMessageClient
-
Client holding the credentials.
S
- send(PhoneNumber, String) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
- send(PhoneNumber, String) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SnsSmsSender
- send(PhoneNumber, String) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioSmsSender
- send(String, String) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioMessageClient
-
Sends a message.
- sentAt - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
The field for the
sentAtrecord component. - sentAt() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Returns the value of the
sentAtrecord component. - SentSms - Record Class in com.irurueta.authserver.authorization.infrastructure.sms
-
A text message recorded by the
SmsOutbox. - SentSms(PhoneNumber, String, Instant) - Constructor for record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Validates the record.
- SmsAdapterConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Wires the phone normaliser and the logging
SmsSenderof development and tests. - SmsAdapterConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
- smsOutbox(SmsOutboxProperties) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SmsAdapterConfiguration
-
Creates the outbox of the logging sender.
- SmsOutbox - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Bounded, thread-safe, in-memory record of the messages the
LoggingSmsSender"sent", so the development inbox can show them, which reads it through the domain portSmsInbox. - SmsOutbox(int) - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutbox
-
Creates the outbox.
- SmsOutboxProperties - Record Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Settings of the
SmsOutbox. - SmsOutboxProperties(int) - Constructor for record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Applies the default capacity when the configured one is not positive.
- snsClient() - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SnsConfiguration
-
Creates the SNS client.
- SnsConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Wires the Amazon SNS sender when the
snsprofile is active. - SnsConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.SnsConfiguration
- snsSmsSender(SnsClient) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.SnsConfiguration
-
Creates the sender.
- SnsSmsSender - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
SmsSenderthat publishes directly to a phone number through Amazon SNS. - SnsSmsSender() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.SnsSmsSender
T
- text - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
The field for the
textrecord component. - text() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Returns the value of the
textrecord component. - to - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
The field for the
torecord component. - to() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Returns the value of the
torecord component. - toString() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
-
Returns a string representation of this record class.
- toString() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
-
Returns a string representation of this record class.
- toString() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Returns a string representation of this record class.
- TwilioConfiguration - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Wires the Twilio sender when the
twilioprofile is active (and SNS is not, so that never twoSmsSenderbeans exist). - TwilioConfiguration() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.TwilioConfiguration
- twilioMessageClient(TwilioProperties) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioConfiguration
-
Creates the SDK wrapper.
- TwilioMessageClient - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Thin wrapper over the Twilio SDK, so the sender can be unit-tested with a mock.
- TwilioMessageClient(TwilioProperties) - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.TwilioMessageClient
-
Creates the client.
- TwilioProperties - Record Class in com.irurueta.authserver.authorization.infrastructure.sms
-
Twilio credentials and sender, bound from the environment variables
AUTHSERVER_SMS_TWILIO_*only; no value is ever written in a file of this repository. - TwilioProperties(String, String, String, String) - Constructor for record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
-
Creates an instance of a
TwilioPropertiesrecord class. - twilioSmsSender(TwilioMessageClient) - Method in class com.irurueta.authserver.authorization.infrastructure.sms.TwilioConfiguration
-
Creates the sender.
- TwilioSmsSender - Class in com.irurueta.authserver.authorization.infrastructure.sms
-
SmsSenderthat sends through Twilio. - TwilioSmsSender() - Constructor for class com.irurueta.authserver.authorization.infrastructure.sms.TwilioSmsSender
U
- util - Variable in class com.irurueta.authserver.authorization.infrastructure.sms.LibPhoneNumberNormalizer
-
The libphonenumber entry point.
V
- VISIBLE_DIGITS - Static variable in class com.irurueta.authserver.authorization.infrastructure.sms.LoggingSmsSender
-
Number of trailing digits of the recipient that are logged.
All Classes and Interfaces|All Packages|Constant Field Values