Class DirectJobStatusResponse
java.lang.Object
no.digipost.signature.client.direct.DirectJobStatusResponse
- All Implemented Interfaces:
Confirmable
-
Constructor Summary
ConstructorsConstructorDescriptionDirectJobStatusResponse(Long signatureJobId, String reference, DirectJobStatus signatureJobStatus, ConfirmationReference confirmationUrl, DeleteDocumentsUrl deleteDocumentsUrl, List<Signature> signatures, PAdESReference pAdESReference, Instant nextPermittedPollTime) -
Method Summary
Modifier and TypeMethodDescriptionGets the point in time where you are allowed toget status changes.getSignatureFrom(String signer) Gets the signature from a given signer.longbooleanis(DirectJobStatus status) booleantoString()
-
Constructor Details
-
DirectJobStatusResponse
public DirectJobStatusResponse(Long signatureJobId, String reference, DirectJobStatus signatureJobStatus, ConfirmationReference confirmationUrl, DeleteDocumentsUrl deleteDocumentsUrl, List<Signature> signatures, PAdESReference pAdESReference, Instant nextPermittedPollTime)
-
-
Method Details
-
getSignatureJobId
public long getSignatureJobId() -
getReference
- Returns:
- the signature job's custom reference as specified upon
creation. May benull.
-
getStatus
-
is
-
isPAdESAvailable
public boolean isPAdESAvailable() -
getpAdESUrl
-
getSignatures
-
getSignatureFrom
Gets the signature from a given signer.- Parameters:
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 thesignerwas initially created (usingDirectSigner.withPersonalIdentificationNumber(String)orDirectSigner.withCustomIdentifier(String)).- Throws:
IllegalArgumentException- if the job response doesn't contain a signature from this signer- See Also:
-
getNextPermittedPollTime
Gets the point in time where you are allowed toget status changes.Only applicable for jobs with
status retrieval methodset toPOLLING.- Throws:
IllegalStateException- for jobs withstatus retrieval methodnot set toPOLLING.
-
getConfirmationReference
- Specified by:
getConfirmationReferencein interfaceConfirmable
-
getDeleteDocumentsUrl
-
toString
-