Index

A C D E F H L M N O P R S T U V 
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 accountSid record component.
accountSid() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
Returns the value of the accountSid record 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 authToken record component.
authToken() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
Returns the value of the authToken record 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 capacity record component.
capacity() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SmsOutboxProperties
Returns the value of the capacity record 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 null when a messaging service is used.
from - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
The field for the from record component.
from() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
Returns the value of the from record 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
PhoneCountryResolver over 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
PhoneNormalizer backed 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
Default SmsSender: sends nothing, it records the message in the SmsOutbox and logs the masked recipient.
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 null when a sender number is used.
messagingServiceSid - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
The field for the messagingServiceSid record component.
messagingServiceSid() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.TwilioProperties
Returns the value of the messagingServiceSid record 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, or dev / test for 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 sentAt record component.
sentAt() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
Returns the value of the sentAt record 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 SmsSender of 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 port SmsInbox.
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 sns profile 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
SmsSender that 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 text record component.
text() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
Returns the value of the text record component.
to - Variable in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
The field for the to record component.
to() - Method in record class com.irurueta.authserver.authorization.infrastructure.sms.SentSms
Returns the value of the to record 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 twilio profile is active (and SNS is not, so that never two SmsSender beans 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 TwilioProperties record 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
SmsSender that 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.
A C D E F H L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values