src/main/java/ee/sk/smartid/SignatureRequestBuilder.java
/**
   * Send the signature request and get the response
   * <p>
   * This method uses automatic session status polling internally
   * and therefore blocks the current thread until signing is concluded/interupted etc.
   *
   * @throws InvalidParametersException when mandatory request parameters are missing
   * @throws UserAccountNotFoundException when the user account was not found
   * @throws RequestForbiddenException when Relying Party has no permission to issue the request.
   *                                   This may happen when Relying Party has no permission to invoke operations on accounts with ADVANCED certificates.
   * @throws UserRefusedException when the user has refused the session
   * @throws SessionTimeoutException when there was a timeout, i.e. end user did not confirm or refuse the operation within given timeframe
   * @throws DocumentUnusableException when for some reason, this relying party request cannot be completed.
   *                                   User must either check his/her Smart-ID mobile application or turn to customer support for getting the exact reason.
   * @throws TechnicalErrorException when session status response's result is missing or it has some unknown value
   * @throws ClientNotSupportedException when the client-side implementation of this API is old and not supported any more
   * @throws ServerMaintenanceException when the server is under maintenance
   *
   * @return the signature response
   */
Send the signature request and get the response

This method uses automatic session status polling internally
and therefore blocks the current thread until signing is concluded/interupted etc.

@throws InvalidParametersException when mandatory request parameters are missing
@throws UserAccountNotFoundException when the user account was not found
@throws RequestForbiddenException when Relying Party has no permission to issue the request.
This may happen when Relying Party has no permission to invoke operations on accounts with ADVANCED certificates.
@throws UserRefusedException when the user has refused the session
@throws SessionTimeoutException when there was a timeout, i.e. end user did not confirm or refuse the operation within given timeframe
@throws DocumentUnusableException when for some reason, this relying party request cannot be completed.
User must either check his/her Smart-ID mobile application or turn to customer support for getting the exact reason.
@throws TechnicalErrorException when session status response's result is missing or it has some unknown value
@throws ClientNotSupportedException when the client-side implementation of this API is old and not supported any more
@throws ServerMaintenanceException when the server is under maintenance

@return the signature response
Send the signature request and get the response This method uses automatic session status polling internally and therefore blocks the current thread until signing is concluded / interupted etc . @throws InvalidParametersException when mandatory request parameters are missing @throws UserAccountNotFoundException when the user account was not found @throws RequestForbiddenException when Relying Party has no permission to issue the request . This may happen when Relying Party has no permission to invoke operations on accounts with ADVANCED certificates . @throws UserRefusedException when the user has refused the session @throws SessionTimeoutException when there was a timeout i . e . end user did not confirm or refuse the operation within given timeframe @throws DocumentUnusableException when for some reason this relying party request cannot be completed . User must either check his / her Smart - ID mobile application or turn to customer support for getting the exact reason . @throws TechnicalErrorException when session status response ' s result is missing or it has some unknown value @throws ClientNotSupportedException when the client - side implementation of this API is old and not supported any more @throws ServerMaintenanceException when the server is under maintenance @return the signature response
public SmartIdSignature sign() throws InvalidParametersException, UserAccountNotFoundException, RequestForbiddenException,UserRefusedException,
      SessionTimeoutException, DocumentUnusableException, TechnicalErrorException, ClientNotSupportedException, ServerMaintenanceException {
    validateParameters();
    String sessionId = initiateSigning();
    SessionStatus sessionStatus = getSessionStatusPoller().fetchFinalSessionStatus(sessionId);
    SmartIdSignature signature = createSmartIdSignature(sessionStatus);
    return signature;
  }
public SmartIdSignature sign ( ) throws InvalidParametersException , UserAccountNotFoundException , RequestForbiddenException , UserRefusedException , SessionTimeoutException , DocumentUnusableException , TechnicalErrorException , ClientNotSupportedException , ServerMaintenanceException { validateParameters ( ) ; String sessionId = initiateSigning ( ) ; SessionStatus sessionStatus = getSessionStatusPoller ( ) . fetchFinalSessionStatus ( sessionId ) ; SmartIdSignature signature = createSmartIdSignature ( sessionStatus ) ; return signature ; }
Send the signature request and get the response
 <p>
 This method uses automatic session status polling internally
 and therefore blocks the current thread until signing is concluded/interupted etc.
Send the signature request and get the response <p > This method uses automatic session status polling internally and therefore blocks the current thread until signing is concluded / interupted etc .