src/main/java/ee/sk/smartid/SignatureRequestBuilder.java
/**
   * Get {@link SmartIdSignature} from {@link SessionStatus}
   *
   * @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.
   * @throws TechnicalErrorException when session status response's result is missing or it has some unknown value
   *
   * @param sessionStatus session status response
   * @return the authentication response
   */
Get  SmartIdSignature from  SessionStatus
@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.
@throws TechnicalErrorException when session status response's result is missing or it has some unknown value

@param sessionStatus session status response
@return the authentication response
Get SmartIdSignature from SessionStatus @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 . @throws TechnicalErrorException when session status response ' s result is missing or it has some unknown value @param sessionStatus session status response @return the authentication response
public SmartIdSignature createSmartIdSignature(SessionStatus sessionStatus) {
    validateSignatureResponse(sessionStatus);
    SessionSignature sessionSignature = sessionStatus.getSignature();
    SmartIdSignature signature = new SmartIdSignature();
    signature.setValueInBase64(sessionSignature.getValue());
    signature.setAlgorithmName(sessionSignature.getAlgorithm());
    signature.setDocumentNumber(sessionStatus.getResult().getDocumentNumber());
    return signature;
  }
public SmartIdSignature createSmartIdSignature ( SessionStatus sessionStatus ) { validateSignatureResponse ( sessionStatus ) ; SessionSignature sessionSignature = sessionStatus . getSignature ( ) ; SmartIdSignature signature = new SmartIdSignature ( ) ; signature . setValueInBase64 ( sessionSignature . getValue ( ) ) ; signature . setAlgorithmName ( sessionSignature . getAlgorithm ( ) ) ; signature . setDocumentNumber ( sessionStatus . getResult ( ) . getDocumentNumber ( ) ) ; return signature ; }
Get {@link SmartIdSignature} from {@link SessionStatus}
 @throws UserRefusedException when the user has refused the session
 @throws SessionTimeoutException when there was a timeout, i.e.
Get { @link SmartIdSignature } from { @link SessionStatus } @throws UserRefusedException when the user has refused the session @throws SessionTimeoutException when there was a timeout i . e .