Class StepUp
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.crypto.providers.swisscomsigsrv.StepUp
-
public class StepUp extends NativeObject
The options for step-up authorization using Mobile ID
-
-
Nested Class Summary
Nested Classes 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 theStepUp.ConsentRequired
event.
-
Constructor Summary
Constructors Constructor Description StepUp(java.lang.String msisdn, java.lang.String message, java.lang.String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addConsentRequiredListener(StepUp.ConsentRequiredListener listener)
Add a listener for theStepUp.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 theStepUp.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)-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Constructor Detail
-
StepUp
public StepUp(java.lang.String msisdn, java.lang.String message, java.lang.String language)
- Parameters:
msisdn
- The mobile phone numbermessage
- The message to be displayed on the mobile phonelanguage
- The language of the message- Throws:
java.lang.IllegalArgumentException
- ifmsisdn
isnull
java.lang.IllegalArgumentException
- ifmessage
isnull
java.lang.IllegalArgumentException
- iflanguage
isnull
-
-
Method Detail
-
addConsentRequiredListener
public void addConsentRequiredListener(StepUp.ConsentRequiredListener listener)
Add a listener for theStepUp.ConsentRequired
event.- Parameters:
listener
- Listener for theStepUp.ConsentRequired
event. If a listener is added that is already registered, it is ignored.
-
removeConsentRequiredListener
public void removeConsentRequiredListener(StepUp.ConsentRequiredListener listener)
Remove registered listener for theStepUp.ConsentRequired
event.- Parameters:
listener
- Listener for theStepUp.ConsentRequired
event that should be removed. If the listener is not registered, it is ignored.
-
getMSISDN
public java.lang.String getMSISDN()
The mobile phone number (Getter)
Example:"+41798765432"
-
setMSISDN
public void setMSISDN(java.lang.String value)
The mobile phone number (Setter)
Example:"+41798765432"
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
getMessage
public java.lang.String getMessage()
The message to be displayed on the mobile phone (Getter)
Example:"Do you authorize your signature on Contract.pdf?"
-
setMessage
public void setMessage(java.lang.String value)
The message to be displayed on the mobile phone (Setter)
Example:"Do you authorize your signature on Contract.pdf?"
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
getLanguage
public java.lang.String getLanguage()
The language of the message (Getter)
Example:"DE"
-
setLanguage
public void setLanguage(java.lang.String value)
The language of the message (Setter)
Example:"DE"
- Throws:
java.lang.IllegalArgumentException
- ifvalue
isnull
-
-