Class DefaultSMSGatewayImpl
- java.lang.Object
-
- com.sun.identity.authentication.modules.hotp.DefaultSMSGatewayImpl
-
- All Implemented Interfaces:
SMSGateway
public class DefaultSMSGatewayImpl extends Object implements SMSGateway
-
-
Constructor Summary
Constructors Constructor Description DefaultSMSGatewayImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsendEmail(String from, String to, String subject, String message, String code, Map options)Sends an email message to the mail with the codevoidsendSMSMessage(String from, String to, String subject, String message, String code, Map options)Sends a SMS message to the phone with the code
-
-
-
Field Detail
-
debug
protected Debug debug
-
-
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:
sendSMSMessagein interfaceSMSGateway- Parameters:
from- The address that sends the SMS messageto- The address that the SMS message is sentsubject- The SMS subjectmessage- The content contained in the SMS messagecode- The code in the SMS messageoptions- 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:
sendEmailin interfaceSMSGateway- Parameters:
from- The address that sends the E-mail messageto- The address that the E-mail message is sentsubject- The E-mail subjectmessage- The content contained in the E-mail messagecode- The code in the E-mail messageoptions- The SMS gateway options defined in the HOTP authentication module- Throws:
AuthLoginException- In case the module was unable to send the e-mail
-
-