public class SignatureValidationProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SignatureValidationProperties.OnlineFetching
Enum representing possible online fetching permissions.
|
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_CONTINUE_AFTER_FAILURE |
static Duration |
DEFAULT_FRESHNESS_HISTORICAL |
static Duration |
DEFAULT_FRESHNESS_PRESENT_CRL |
static Duration |
DEFAULT_FRESHNESS_PRESENT_OCSP |
static SignatureValidationProperties.OnlineFetching |
DEFAULT_ONLINE_FETCHING |
| Constructor and Description |
|---|
SignatureValidationProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getContinueAfterFailure(ValidationContext validationContext)
Returns the Continue after failure setting for the provided context or the default context.
|
Duration |
getFreshness(ValidationContext validationContext)
Returns the freshness setting for the provided validation context or the default context
in milliseconds.
|
List<CertificateExtension> |
getRequiredExtensions(ValidationContext validationContext)
Returns required extension for the provided validation context.
|
SignatureValidationProperties.OnlineFetching |
getRevocationOnlineFetching(ValidationContext validationContext)
Sets the onlineFetching property representing possible online fetching permissions.
|
SignatureValidationProperties |
setContinueAfterFailure(ValidatorContexts validatorContexts,
CertificateSources certificateSources,
boolean value)
Sets the Continue after failure setting for the provided context.
|
SignatureValidationProperties |
setFreshness(ValidatorContexts validatorContexts,
CertificateSources certificateSources,
TimeBasedContexts timeBasedContexts,
Duration value)
Sets the freshness setting for the specified validator,
time based and certificate source contexts in milliseconds.
|
SignatureValidationProperties |
setRevocationOnlineFetching(ValidatorContexts validatorContexts,
CertificateSources certificateSources,
TimeBasedContexts timeBasedContexts,
SignatureValidationProperties.OnlineFetching onlineFetching)
Sets the onlineFetching property representing possible online fetching permissions.
|
public static final boolean DEFAULT_CONTINUE_AFTER_FAILURE
public static final Duration DEFAULT_FRESHNESS_PRESENT_CRL
public static final Duration DEFAULT_FRESHNESS_PRESENT_OCSP
public static final Duration DEFAULT_FRESHNESS_HISTORICAL
public static final SignatureValidationProperties.OnlineFetching DEFAULT_ONLINE_FETCHING
public Duration getFreshness(ValidationContext validationContext)
validationContext - the validation context for which to retrieve the freshness settingpublic final SignatureValidationProperties setFreshness(ValidatorContexts validatorContexts, CertificateSources certificateSources, TimeBasedContexts timeBasedContexts, Duration value)
validatorContexts - the validators for which to apply the settingcertificateSources - the certificate sources totimeBasedContexts - the date comparison context for which to apply the settingvalue - the settings value in millisecondsSignatureValidationProperties instance.public boolean getContinueAfterFailure(ValidationContext validationContext)
validationContext - the context for which to retrieve the Continue after failure settingpublic final SignatureValidationProperties setContinueAfterFailure(ValidatorContexts validatorContexts, CertificateSources certificateSources, boolean value)
validatorContexts - the validators for which to set the Continue after failure settingcertificateSources - the certificateSources for which to set the Continue after failure settingvalue - the Continue after failure settingSignatureValidationProperties instance.public SignatureValidationProperties.OnlineFetching getRevocationOnlineFetching(ValidationContext validationContext)
validationContext - the context for which to retrieve the online fetching settingpublic final SignatureValidationProperties setRevocationOnlineFetching(ValidatorContexts validatorContexts, CertificateSources certificateSources, TimeBasedContexts timeBasedContexts, SignatureValidationProperties.OnlineFetching onlineFetching)
validatorContexts - the validators for which to set this valuecertificateSources - the certificate source for which to set this valuetimeBasedContexts - time perspective context, at which validation is happeningonlineFetching - onlineFetching property value to setSignatureValidationProperties instance.public List<CertificateExtension> getRequiredExtensions(ValidationContext validationContext)
validationContext - the validation context for which to retrieve required extensionsCopyright © 1998–2024 Apryse Group NV. All rights reserved.