Class TwilioConfiguration
java.lang.Object
com.irurueta.authserver.authorization.infrastructure.sms.TwilioConfiguration
@Configuration(proxyBeanMethods=false)
@Profile("twilio & !sns")
@EnableConfigurationProperties(TwilioProperties.class)
public class TwilioConfiguration
extends Object
Wires the Twilio sender when the
twilio profile is active (and SNS is not, so that never two
SmsSender beans exist).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiontwilioMessageClient(TwilioProperties properties) Creates the SDK wrapper.twilioSmsSender(TwilioMessageClient client) Creates the sender.
-
Constructor Details
-
TwilioConfiguration
public TwilioConfiguration()
-
-
Method Details
-
twilioMessageClient
Creates the SDK wrapper.- Parameters:
properties- credentials and sender, from the environment.- Returns:
- the client.
-
twilioSmsSender
Creates the sender.- Parameters:
client- SDK wrapper.- Returns:
- the Twilio sender.
-