Class ActionRequiredForJWSCompletionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ActionRequiredForJWSCompletionException
    extends JOSEException
    Action required for JWS completion. Can be used to signal a user authentication requirement in Android to unlock a private signing key created with setUserAuthenticationRequired(true).
    See Also:
    Serialized Form
    • Constructor Detail

      • ActionRequiredForJWSCompletionException

        public ActionRequiredForJWSCompletionException​(java.lang.String message,
                                                       JWSSignerOption option,
                                                       CompletableJWSObjectSigning completableSigning)
        Creates a new action required for JWS completion exception.
        Parameters:
        message - The exception message.
        option - The JWS signer option that triggered the exception.
        completableSigning - To complete the JWS object signing after the required action.
    • Method Detail

      • getTriggeringOption

        public JWSSignerOption getTriggeringOption()
        Returns the JWS signer option that triggered this exception.
        Returns:
        The JWS signer option.
      • getCompletableJWSObjectSigning

        public CompletableJWSObjectSigning getCompletableJWSObjectSigning()
        Returns an interface to complete the JWS object signing after the required action is performed.
        Returns:
        The completable JWS object signing.