title: sending sms from java web app using aws sns
body: <p>A user will create an account on my web app.  The app will need to authenticate the user by sending a text message to the mobile phone number that the user provides.  The text message is a short unique code, which the user will need to type in to the web browser in order for the app to authenticate the user.  </p>
  
  <p><strong>How can I configure Amazon AWS SNS for this use case?</strong>  </p>
  
  <p>From what I have read, SNS works by the webmaster selecting a <code>topic</code> and then each user subscribes to that topic.  Then the webmaster sends messages broadcast style to all the subscribers to the topic.  This would not meet my requirements of sending a unique message to each user.  Alternatively, creating a separate <code>topic</code> for every phone number would be too cumbersome, not to mention creating security issues with respect to protecting the privacy of all the phone numbers.  </p>
  
  <p><strong>Can Amazon AWS SNS be configured for this use case?  If so, how?</strong>  </p>
  
  <p>I am using Java.</p>