Class PortalClient
- java.lang.Object
-
- no.digipost.signature.client.portal.PortalClient
-
public class PortalClient extends Object
-
-
Constructor Summary
Constructors Constructor Description PortalClient(ClientConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel(Cancellable cancellable)
void
confirm(PortalJobStatusChanged receivedStatusChanged)
Confirms that the status retrieved fromgetStatusChange()
is received and may be discarded by the Signature service and not retrieved again.PortalJobResponse
create(PortalJob job)
void
deleteDocuments(DeleteDocumentsUrl deleteDocumentsUrl)
InputStream
getPAdES(PAdESReference pAdESReference)
PortalJobStatusChanged
getStatusChange()
If there is a job with an updatedstatus
, the returned object contains necessary information to act on the status change.PortalJobStatusChanged
getStatusChange(Sender sender)
If there is a job with an updatedstatus
, the returned object contains necessary information to act on the status change.InputStream
getXAdES(XAdESReference xAdESReference)
-
-
-
Constructor Detail
-
PortalClient
public PortalClient(ClientConfiguration config)
-
-
Method Detail
-
create
public PortalJobResponse create(PortalJob job)
-
getStatusChange
public PortalJobStatusChanged getStatusChange()
If there is a job with an updatedstatus
, the returned object contains necessary information to act on the status change. The returned object can be queried using.is(
NO_CHANGES)
to determine if there has been a status change. When processing of the status change is complete, (e.g. retrievingPAdES
and/orXAdES
documents for acompleted
job where all signers havesigned
their documents), the returned status must beconfirmed
.- Returns:
- the changed status for a job, or an instance indicating
no changes
, nevernull
.
-
getStatusChange
public PortalJobStatusChanged getStatusChange(Sender sender)
If there is a job with an updatedstatus
, the returned object contains necessary information to act on the status change. The returned object can be queried using.is(
NO_CHANGES)
to determine if there has been a status change. When processing of the status change is complete, (e.g. retrievingPAdES
and/orXAdES
documents for acompleted
job where all signers havesigned
their documents), the returned status must beconfirmed
.- Returns:
- the changed status for a job, or an instance indicating
no changes
, nevernull
.
-
confirm
public void confirm(PortalJobStatusChanged receivedStatusChanged)
Confirms that the status retrieved fromgetStatusChange()
is received and may be discarded by the Signature service and not retrieved again. Calling this method on a status update with noConfirmationReference
has no effect.- Parameters:
receivedStatusChanged
- the updated status retrieved fromgetStatusChange()
.
-
cancel
public void cancel(Cancellable cancellable)
-
getXAdES
public InputStream getXAdES(XAdESReference xAdESReference)
-
getPAdES
public InputStream getPAdES(PAdESReference pAdESReference)
-
deleteDocuments
public void deleteDocuments(DeleteDocumentsUrl deleteDocumentsUrl)
-
-