Class SMSAuth

java.lang.Object
com.tremolosecurity.proxy.auth.SMSAuth
All Implemented Interfaces:
AuthMechanism
Direct Known Subclasses:
SmtpOtp, TwilioSMS

public abstract class SMSAuth extends Object implements AuthMechanism
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    void
    doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    void
    doHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    void
    doOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    void
    doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    void
    doPut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as)
     
    getFinalURL(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
     
    void
    init(jakarta.servlet.ServletContext ctx, HashMap<String,Attribute> init)
     
    abstract void
    sendSMS(HashMap<String,Attribute> authParams, String from, String message, String to)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SMSAuth

      public SMSAuth()
  • Method Details

    • doGet

      public void doGet(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doGet in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • sendSMS

      public abstract void sendSMS(HashMap<String,Attribute> authParams, String from, String message, String to) throws jakarta.servlet.ServletException
      Throws:
      jakarta.servlet.ServletException
    • doPost

      public void doPost(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doPost in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doPut

      public void doPut(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doPut in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doHead

      public void doHead(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doHead in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doOptions

      public void doOptions(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doOptions in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • doDelete

      public void doDelete(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, AuthStep as) throws IOException, jakarta.servlet.ServletException
      Specified by:
      doDelete in interface AuthMechanism
      Throws:
      IOException
      jakarta.servlet.ServletException
    • init

      public void init(jakarta.servlet.ServletContext ctx, HashMap<String,Attribute> init)
      Specified by:
      init in interface AuthMechanism
    • getFinalURL

      public String getFinalURL(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
      Specified by:
      getFinalURL in interface AuthMechanism