Class DirectJob
- java.lang.Object
-
- no.digipost.signature.client.direct.DirectJob
-
- All Implemented Interfaces:
SignatureJob
,WithExitUrls
public class DirectJob extends Object implements SignatureJob, WithExitUrls
Signature job with document(s) to be signed by one or more signers in direct flow.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DirectJob.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DirectJob.Builder
builder(String title, List<DirectDocument> documents, List<DirectSigner> signers, WithExitUrls hasExitUrls)
Create a new signature job for direct flow.static DirectJob.Builder
builder(String title, DirectDocument document, DirectSigner signer, WithExitUrls hasExitUrls)
Create a new signature job for direct flow.URI
getCompletionUrl()
Optional<String>
getDescription()
List<Document>
getDocuments()
URI
getErrorUrl()
Optional<IdentifierInSignedDocuments>
getIdentifierInSignedDocuments()
String
getReference()
URI
getRejectionUrl()
Optional<AuthenticationLevel>
getRequiredAuthentication()
Optional<Sender>
getSender()
List<DirectSigner>
getSigners()
Optional<StatusRetrievalMethod>
getStatusRetrievalMethod()
String
getTitle()
-
-
-
Method Detail
-
getReference
public String getReference()
- Specified by:
getReference
in interfaceSignatureJob
-
getDocuments
public List<Document> getDocuments()
- Specified by:
getDocuments
in interfaceSignatureJob
-
getSender
public Optional<Sender> getSender()
- Specified by:
getSender
in interfaceSignatureJob
-
getCompletionUrl
public URI getCompletionUrl()
- Specified by:
getCompletionUrl
in interfaceWithExitUrls
-
getRejectionUrl
public URI getRejectionUrl()
- Specified by:
getRejectionUrl
in interfaceWithExitUrls
-
getErrorUrl
public URI getErrorUrl()
- Specified by:
getErrorUrl
in interfaceWithExitUrls
-
getRequiredAuthentication
public Optional<AuthenticationLevel> getRequiredAuthentication()
- Specified by:
getRequiredAuthentication
in interfaceSignatureJob
-
getIdentifierInSignedDocuments
public Optional<IdentifierInSignedDocuments> getIdentifierInSignedDocuments()
- Specified by:
getIdentifierInSignedDocuments
in interfaceSignatureJob
-
getSigners
public List<DirectSigner> getSigners()
-
getStatusRetrievalMethod
public Optional<StatusRetrievalMethod> getStatusRetrievalMethod()
-
getTitle
public String getTitle()
-
builder
public static DirectJob.Builder builder(String title, DirectDocument document, DirectSigner signer, WithExitUrls hasExitUrls)
Create a new signature job for direct flow.- Parameters:
document
- Thedocument
that should be signed.hasExitUrls
- specifies the URLs the user will be redirected back to upon completing/rejecting/failing to sign the document. SeeExitUrls.of(URI, URI, URI)
, and alternativelyExitUrls.singleExitUrl(URI)
.signer
- Thesigner
of the document.- Returns:
- a builder to further customize the job
-
builder
public static DirectJob.Builder builder(String title, List<DirectDocument> documents, List<DirectSigner> signers, WithExitUrls hasExitUrls)
Create a new signature job for direct flow.- Parameters:
documents
- Thedocument
that should be signed.hasExitUrls
- specifies the URLs the user will be redirected back to upon completing/rejecting/failing to sign the documents. SeeExitUrls.of(URI, URI, URI)
, and alternativelyExitUrls.singleExitUrl(URI)
.signers
- Thesigners
of the document.- Returns:
- a builder to further customize the job
-
-