Class PortalJob.Builder
- java.lang.Object
-
- no.digipost.signature.client.portal.PortalJob.Builder
-
- All Implemented Interfaces:
JobCustomizations<PortalJob.Builder>
- Enclosing class:
- PortalJob
public static class PortalJob.Builder extends Object implements JobCustomizations<PortalJob.Builder>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortalJob.Builder
availableFor(long duration, TimeUnit unit)
PortalJob
build()
PortalJob.Builder
requireAuthentication(AuthenticationLevel minimumLevel)
Specify the minimum level of authentication of the signer(s) of this job.PortalJob.Builder
withActivationTime(Instant activationTime)
PortalJob.Builder
withIdentifierInSignedDocuments(IdentifierInSignedDocuments identifier)
Specify how the signer(s) of this job should be identified in the signed documents (XAdES and PAdES); bypersonal identification number and name
,date of birth and name
orname only
.PortalJob.Builder
withReference(String reference)
Set a custom reference that is attached to the job.PortalJob.Builder
withReference(UUID uuid)
Set anUUID
as custom reference that is attached to the job.PortalJob.Builder
withSender(Sender sender)
Set the sender for this specific signature job.
-
-
-
Method Detail
-
withReference
public PortalJob.Builder withReference(UUID uuid)
Description copied from interface:JobCustomizations
Set anUUID
as custom reference that is attached to the job.- Specified by:
withReference
in interfaceJobCustomizations<PortalJob.Builder>
- Parameters:
uuid
- theUUID
to use as reference.
-
withReference
public PortalJob.Builder withReference(String reference)
Description copied from interface:JobCustomizations
Set a custom reference that is attached to the job.- Specified by:
withReference
in interfaceJobCustomizations<PortalJob.Builder>
- Parameters:
reference
- the reference
-
withSender
public PortalJob.Builder withSender(Sender sender)
Description copied from interface:JobCustomizations
Set the sender for this specific signature job.You may use
ClientConfiguration.Builder.globalSender(Sender)
to specify a global sender used for all signature jobs.- Specified by:
withSender
in interfaceJobCustomizations<PortalJob.Builder>
-
requireAuthentication
public PortalJob.Builder requireAuthentication(AuthenticationLevel minimumLevel)
Description copied from interface:JobCustomizations
Specify the minimum level of authentication of the signer(s) of this job. This includes the required authentication both in order to view the document, as well as it will limit which authentication mechanisms offered at the time of signing the document.- Specified by:
requireAuthentication
in interfaceJobCustomizations<PortalJob.Builder>
- Parameters:
minimumLevel
- the required minimumAuthenticationLevel
.
-
withIdentifierInSignedDocuments
public PortalJob.Builder withIdentifierInSignedDocuments(IdentifierInSignedDocuments identifier)
Description copied from interface:JobCustomizations
Specify how the signer(s) of this job should be identified in the signed documents (XAdES and PAdES); bypersonal identification number and name
,date of birth and name
orname only
.Not all options are available to every sender, this is detailed in the service's functional documentation.
- Specified by:
withIdentifierInSignedDocuments
in interfaceJobCustomizations<PortalJob.Builder>
- Parameters:
identifier
- the identifier type
-
withActivationTime
public PortalJob.Builder withActivationTime(Instant activationTime)
-
availableFor
public PortalJob.Builder availableFor(long duration, TimeUnit unit)
-
build
public PortalJob build()
-
-