Class PortalJobStatusChanged
- java.lang.Object
-
- no.digipost.signature.client.portal.PortalJobStatusChanged
-
- All Implemented Interfaces:
Cancellable
,Confirmable
public class PortalJobStatusChanged extends Object implements Confirmable, Cancellable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationUrl
getCancellationUrl()
ConfirmationReference
getConfirmationReference()
DeleteDocumentsUrl
getDeleteDocumentsUrl()
Instant
getNextPermittedPollTime()
PAdESReference
getpAdESUrl()
String
getReference()
Signature
getSignatureFrom(SignerIdentifier signer)
Gets the signature from a given signer.long
getSignatureJobId()
List<Signature>
getSignatures()
PortalJobStatus
getStatus()
boolean
is(PortalJobStatus status)
boolean
isPAdESAvailable()
String
toString()
-
-
-
Method Detail
-
getSignatureJobId
public long getSignatureJobId()
-
getReference
public String getReference()
- Returns:
- the signature job's custom reference as specified upon
creation
. May benull
.
-
getStatus
public PortalJobStatus getStatus()
-
is
public boolean is(PortalJobStatus status)
-
isPAdESAvailable
public boolean isPAdESAvailable()
-
getpAdESUrl
public PAdESReference getpAdESUrl()
-
getSignatureFrom
public Signature getSignatureFrom(SignerIdentifier signer)
Gets the signature from a given signer.- Parameters:
signer
- an identifier referring to a signer of the job. It may be a personal identification number or contact information, depending of how thesigner
was initially created (usingpersonal identification number
1,personal identification number
2,email address
,mobile number
orboth email address and mobile number
).1: with contact information provided.
2: using contact information from a lookup service.- Throws:
IllegalArgumentException
- if the job response doesn't contain a signature from this signer
-
getNextPermittedPollTime
public Instant getNextPermittedPollTime()
-
getConfirmationReference
public ConfirmationReference getConfirmationReference()
- Specified by:
getConfirmationReference
in interfaceConfirmable
-
getCancellationUrl
public CancellationUrl getCancellationUrl()
- Specified by:
getCancellationUrl
in interfaceCancellable
-
getDeleteDocumentsUrl
public DeleteDocumentsUrl getDeleteDocumentsUrl()
-
-