public class DirectJobStatusResponse extends Object implements Confirmable
| Constructor and Description |
|---|
DirectJobStatusResponse(Long signatureJobId,
String reference,
DirectJobStatus signatureJobStatus,
ConfirmationReference confirmationUrl,
DeleteDocumentsUrl deleteDocumentsUrl,
List<Signature> signatures,
PAdESReference pAdESReference,
Instant nextPermittedPollTime) |
| Modifier and Type | Method and Description |
|---|---|
ConfirmationReference |
getConfirmationReference() |
DeleteDocumentsUrl |
getDeleteDocumentsUrl() |
Instant |
getNextPermittedPollTime()
Gets the point in time where you are allowed to
get status changes. |
PAdESReference |
getpAdESUrl() |
String |
getReference() |
Signature |
getSignatureFrom(String signer)
Gets the signature from a given signer.
|
long |
getSignatureJobId() |
List<Signature> |
getSignatures() |
DirectJobStatus |
getStatus() |
boolean |
is(DirectJobStatus status) |
boolean |
isPAdESAvailable() |
String |
toString() |
public DirectJobStatusResponse(Long signatureJobId, String reference, DirectJobStatus signatureJobStatus, ConfirmationReference confirmationUrl, DeleteDocumentsUrl deleteDocumentsUrl, List<Signature> signatures, PAdESReference pAdESReference, Instant nextPermittedPollTime)
public long getSignatureJobId()
public String getReference()
creation. May be null.public DirectJobStatus getStatus()
public boolean is(DirectJobStatus status)
public boolean isPAdESAvailable()
public PAdESReference getpAdESUrl()
public Signature getSignatureFrom(String signer)
signer - a string referring to a signer of the job. It may be a personal identification number or
a custom signer reference, depending of how the signer was initially created
(using DirectSigner.withPersonalIdentificationNumber(String) or
DirectSigner.withCustomIdentifier(String)).IllegalArgumentException - if the job response doesn't contain a signature from this signergetSignatures()public Instant getNextPermittedPollTime()
get status changes.
Only applicable for jobs with status retrieval method
set to POLLING.
IllegalStateException - for jobs with status retrieval method
not set to POLLING.public ConfirmationReference getConfirmationReference()
getConfirmationReference in interface Confirmablepublic DeleteDocumentsUrl getDeleteDocumentsUrl()
Copyright © 2019 Digipost. All rights reserved.