public final class ExtenderBuilder extends Object
Extender object(s).
At least extending service and publication handler must be set to build the Extender object,
otherwise the NullPointerException is thrown.| Constructor and Description |
|---|
ExtenderBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Extender |
build()
Builds the
Extender instance. |
ExtenderBuilder |
setDefaultVerificationPolicy(ContextAwarePolicy policy)
Sets the default verification policy.
|
ExtenderBuilder |
setExtendingService(KSIExtendingService extendingService)
Sets the extending service to be used in extending and verification process.
|
ExtenderBuilder |
setPublicationsHandler(PublicationsHandler publicationsHandler)
Sets the publications file handler to be used to download the publications file.
|
public ExtenderBuilder setExtendingService(KSIExtendingService extendingService)
public ExtenderBuilder setPublicationsHandler(PublicationsHandler publicationsHandler)
public ExtenderBuilder setDefaultVerificationPolicy(ContextAwarePolicy policy)
InvalidSignatureContentException exception is thrown.
If needed, user can access the invalid signature and verification result using the methods
InvalidSignatureContentException.getSignature() and
InvalidSignatureContentException.getVerificationResult().
By default the policy returned by method ContextAwarePolicyAdapter.createInternalPolicy() is used.
public Extender build() throws KSIException
Extender instance. Checks that the extender and the publications file handler are set.
If not configured, NullPointerException is thrown.Extender class.KSIException - will be thrown when errors occur on Extender class initialization.Copyright © 2024 Guardtime. All rights reserved.