public class StepUp extends NativeObject
Modifier and Type | Class | Description |
---|---|---|
class |
StepUp.ConsentRequired |
Event containing the URL for step-up authentication using password and SMS challenge (OTP).
|
static interface |
StepUp.ConsentRequiredListener |
Listener interface for the
StepUp.ConsentRequired event. |
Constructor | Description |
---|---|
StepUp(java.lang.String msisdn,
java.lang.String message,
java.lang.String language) |
Modifier and Type | Method | Description |
---|---|---|
void |
addConsentRequiredListener(StepUp.ConsentRequiredListener listener) |
Add a listener for the
StepUp.ConsentRequired event. |
java.lang.String |
getLanguage() |
The language of the message (Getter)
|
java.lang.String |
getMessage() |
The message to be displayed on the mobile phone (Getter)
|
java.lang.String |
getMSISDN() |
The mobile phone number (Getter)
|
void |
removeConsentRequiredListener(StepUp.ConsentRequiredListener listener) |
Remove registered listener for the
StepUp.ConsentRequired event. |
void |
setLanguage(java.lang.String value) |
The language of the message (Setter)
|
void |
setMessage(java.lang.String value) |
The message to be displayed on the mobile phone (Setter)
|
void |
setMSISDN(java.lang.String value) |
The mobile phone number (Setter)
|
equals, hashCode
public StepUp(java.lang.String msisdn, java.lang.String message, java.lang.String language)
msisdn
- The mobile phone numbermessage
- The message to be displayed on the mobile phonelanguage
- The language of the messagejava.lang.IllegalArgumentException
- if msisdn
is null
java.lang.IllegalArgumentException
- if message
is null
java.lang.IllegalArgumentException
- if language
is null
public void addConsentRequiredListener(StepUp.ConsentRequiredListener listener)
StepUp.ConsentRequired
event.listener
- Listener for the StepUp.ConsentRequired
event.
If a listener is added that is already registered, it is ignored.public void removeConsentRequiredListener(StepUp.ConsentRequiredListener listener)
StepUp.ConsentRequired
event.listener
- Listener for the StepUp.ConsentRequired
event that should be removed.
If the listener is not registered, it is ignored.public java.lang.String getMSISDN()
"+41798765432"
public void setMSISDN(java.lang.String value)
"+41798765432"
java.lang.IllegalArgumentException
- if value
is null
public java.lang.String getMessage()
"Do you authorize your signature on Contract.pdf?"
public void setMessage(java.lang.String value)
"Do you authorize your signature on Contract.pdf?"
java.lang.IllegalArgumentException
- if value
is null
public java.lang.String getLanguage()
"DE"
public void setLanguage(java.lang.String value)
"DE"
java.lang.IllegalArgumentException
- if value
is null