Class StatusReference
- java.lang.Object
-
- no.digipost.signature.client.direct.StatusReference
-
public class StatusReference extends Object
AStatusReference
is constructed from the url acquired fromDirectJobResponse.getStatusUrl()
, and a token provided as aquery parameter
which is added to theexit URL
the signer is redirected to when the signing ceremony is completed/aborted/failed. The token needs to be consumed by the system the user is redirected to, and consequently provided toStatusReference.StatusUrlContruction.withStatusQueryToken(String)
to be able to construct a valid completeStatusReference
which is passed toDirectClient.getStatus(StatusReference)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StatusReference.StatusUrlContruction
-
Field Summary
Fields Modifier and Type Field Description static String
STATUS_QUERY_TOKEN_PARAM_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description URI
getStatusUrl()
static StatusReference.StatusUrlContruction
of(DirectJobResponse response)
Start constructing a newStatusReference
.static StatusReference.StatusUrlContruction
ofUrl(URI statusUrl)
Start constructing a newStatusReference
.
-
-
-
Field Detail
-
STATUS_QUERY_TOKEN_PARAM_NAME
public static final String STATUS_QUERY_TOKEN_PARAM_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
of
public static StatusReference.StatusUrlContruction of(DirectJobResponse response)
Start constructing a newStatusReference
.- Parameters:
response
- theDirectJobResponse
- See Also:
ofUrl(URI)
-
ofUrl
public static StatusReference.StatusUrlContruction ofUrl(URI statusUrl)
Start constructing a newStatusReference
.- Parameters:
statusUrl
- the status url for the job- Returns:
- partially constructed
StatusReference
which must be completed with a status query token using.withStatusQueryToken(token)
-
getStatusUrl
public URI getStatusUrl()
-
-