Class StepUp
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.crypto.providers.swisscomsigsrv.StepUp
The options for step-up authorization using Mobile ID
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassEvent containing the URL for step-up authentication using password and SMS challenge (OTP).static interfaceListener interface for theStepUp.ConsentRequiredevent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a listener for theStepUp.ConsentRequiredevent.The language of the message (Getter)The message to be displayed on the mobile phone (Getter)The mobile phone number (Getter)voidRemove registered listener for theStepUp.ConsentRequiredevent.voidsetLanguage(String value) The language of the message (Setter)voidsetMessage(String value) The message to be displayed on the mobile phone (Setter)voidThe mobile phone number (Setter)Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
StepUp
- Parameters:
msisdn- The mobile phone numbermessage- The message to be displayed on the mobile phonelanguage- The language of the message- Throws:
IllegalArgumentException- ifmsisdnisnullIllegalArgumentException- ifmessageisnullIllegalArgumentException- iflanguageisnull
-
-
Method Details
-
addConsentRequiredListener
Add a listener for theStepUp.ConsentRequiredevent.- Parameters:
listener- Listener for theStepUp.ConsentRequiredevent. If a listener is added that is already registered, it is ignored.
-
removeConsentRequiredListener
Remove registered listener for theStepUp.ConsentRequiredevent.- Parameters:
listener- Listener for theStepUp.ConsentRequiredevent that should be removed. If the listener is not registered, it is ignored.
-
getMSISDN
The mobile phone number (Getter)
Example:"+41798765432" -
setMSISDN
The mobile phone number (Setter)
Example:"+41798765432"- Throws:
IllegalArgumentException- ifvalueisnull
-
getMessage
The message to be displayed on the mobile phone (Getter)
Example:"Do you authorize your signature on Contract.pdf?" -
setMessage
The message to be displayed on the mobile phone (Setter)
Example:"Do you authorize your signature on Contract.pdf?"- Throws:
IllegalArgumentException- ifvalueisnull
-
getLanguage
The language of the message (Getter)
Example:"DE" -
setLanguage
The language of the message (Setter)
Example:"DE"- Throws:
IllegalArgumentException- ifvalueisnull
-