Class DefaultSMSGatewayImpl

    • Field Detail

      • debug

        protected Debug debug
    • Constructor Detail

      • DefaultSMSGatewayImpl

        public DefaultSMSGatewayImpl()
    • Method Detail

      • sendSMSMessage

        public void sendSMSMessage​(String from,
                                   String to,
                                   String subject,
                                   String message,
                                   String code,
                                   Map options)
                            throws AuthLoginException
        Sends a SMS message to the phone with the code

        Specified by:
        sendSMSMessage in interface SMSGateway
        Parameters:
        from - The address that sends the SMS message
        to - The address that the SMS message is sent
        subject - The SMS subject
        message - The content contained in the SMS message
        code - The code in the SMS message
        options - The SMS gateway options defined in the HOTP authentication module
        Throws:
        AuthLoginException - In case the module was unable to send the SMS
      • sendEmail

        public void sendEmail​(String from,
                              String to,
                              String subject,
                              String message,
                              String code,
                              Map options)
                       throws AuthLoginException
        Sends an email message to the mail with the code

        Specified by:
        sendEmail in interface SMSGateway
        Parameters:
        from - The address that sends the E-mail message
        to - The address that the E-mail message is sent
        subject - The E-mail subject
        message - The content contained in the E-mail message
        code - The code in the E-mail message
        options - The SMS gateway options defined in the HOTP authentication module
        Throws:
        AuthLoginException - In case the module was unable to send the e-mail