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

  • Constructor Details

  • Method Details

    • addConsentRequiredListener

      public void addConsentRequiredListener(StepUp.ConsentRequiredListener listener)
      Add a listener for the StepUp.ConsentRequired event.
      Parameters:
      listener - Listener for the StepUp.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 the StepUp.ConsentRequired event.
      Parameters:
      listener - Listener for the StepUp.ConsentRequired event that should be removed. If the listener is not registered, it is ignored.
    • getMSISDN

      public String getMSISDN()

      The mobile phone number (Getter)

      Example: "+41798765432"
    • setMSISDN

      public void setMSISDN(String value)

      The mobile phone number (Setter)

      Example: "+41798765432"
      Throws:
      IllegalArgumentException - if value is null
    • getMessage

      public 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(String value)

      The message to be displayed on the mobile phone (Setter)

      Example: "Do you authorize your signature on Contract.pdf?"
      Throws:
      IllegalArgumentException - if value is null
    • getLanguage

      public String getLanguage()

      The language of the message (Getter)

      Example: "DE"
    • setLanguage

      public void setLanguage(String value)

      The language of the message (Setter)

      Example: "DE"
      Throws:
      IllegalArgumentException - if value is null