public class PortalClient extends Object
Constructor and Description |
---|
PortalClient(ClientConfiguration config) |
Modifier and Type | Method and Description |
---|---|
void |
cancel(Cancellable cancellable) |
void |
confirm(PortalJobStatusChanged receivedStatusChanged)
Confirms that the status retrieved from
getStatusChange() is received and may
be discarded by the Signature service and not retrieved again. |
PortalJobResponse |
create(PortalJob job) |
InputStream |
getPAdES(PAdESReference pAdESReference) |
PortalJobStatusChanged |
getStatusChange()
If there is a job with an updated
status , the returned object contains
necessary information to act on the status change. |
PortalJobStatusChanged |
getStatusChange(Sender sender)
If there is a job with an updated
status , the returned object contains
necessary information to act on the status change. |
InputStream |
getXAdES(XAdESReference xAdESReference) |
public PortalClient(ClientConfiguration config)
public PortalJobResponse create(PortalJob job)
public PortalJobStatusChanged getStatusChange()
status
, 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. retrieving
PAdES
and/or XAdES
documents for a
completed
job where all signers have signed
their documents),
the returned status must be confirmed
.NO_UPDATED_STATUS
,
never null
.public PortalJobStatusChanged getStatusChange(Sender sender)
status
, 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. retrieving
PAdES
and/or XAdES
documents for a
completed
job where all signers have signed
their documents),
the returned status must be confirmed
.NO_UPDATED_STATUS
,
never null
.public void confirm(PortalJobStatusChanged receivedStatusChanged)
getStatusChange()
is received and may
be discarded by the Signature service and not retrieved again. Calling this method on
a status update with no ConfirmationReference
has no effect.receivedStatusChanged
- the updated status retrieved from getStatusChange()
.public void cancel(Cancellable cancellable)
public InputStream getXAdES(XAdESReference xAdESReference)
public InputStream getPAdES(PAdESReference pAdESReference)
Copyright © 2016 Digipost. All rights reserved.