All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pdftools.signaturevalidation.DataSource Maven / Gradle / Ivy

Go to download

The Pdftools SDK is a comprehensive development library that lets developers integrate advanced PDF functionalities into in-house applications.

The newest version!
/****************************************************************************
 *
 * File:            DataSource.java
 *
 * Description:     DataSource Enumeration
 *
 * Author:          PDF Tools AG
 * 
 * Copyright:       Copyright (C) 2023 - 2024 PDF Tools AG, Switzerland
 *                  All rights reserved.
 * 
 * Notice:          By downloading and using this artifact, you accept PDF Tools AG's
 *                  [license agreement](https://www.pdf-tools.com/license-agreement/),
 *                  [privacy policy](https://www.pdf-tools.com/privacy-policy/),
 *                  and allow PDF Tools AG to track your usage data.
 *
 ***************************************************************************/

package com.pdftools.signaturevalidation;

import com.pdftools.internal.Flag;

/**
 * 

The source of data such as certificates, OCRPs or CRLs

*/ public enum DataSource implements Flag { /** *

Data embedded in the signature

* Allowed data: certificates, OCSP, CRL */ EMBED_IN_SIGNATURE(0x0001), /** *

Data embedded in the document security store (DSS)

* Allowed data: certificates, OCSP, CRL */ EMBED_IN_DOCUMENT(0x0002), /** *

Data retrieved online or from the local download cache

*

* Allowed data: issuer certificates (for certificates that have caIssuers extension), OCSP, CRL

*

* Note: only data for certificates that are time-valid at the current time can be downloaded. * For example, OCSP and CRL can only be downloaded for certificates that have not yet expired. *

*/ DOWNLOAD(0x0004), /** *

Data from the local system cache

* Allowed data: certificates */ SYSTEM(0x0008), /** *

From the Adobe Approved Trust List (AATL)

*

* NOTE: Support for this trust list has not yet been implemented.

*

* Allowed data: issuer certificates *

*/ AATL(0x0100), /** *

From the European Trust List (EUTL)

*

* NOTE: Support for this trust list has not yet been implemented.

*

* Allowed data: issuer certificates *

*/ EUTL(0x0200), /** *

From the custom trust list

*

* The list of certificates defined by the {@link CustomTrustList }. * If no custom trust list has been defined, this value has no effect.

*

* Allowed data: issuer certificates *

*/ CUSTOM_TRUST_LIST(0x0400); DataSource(int value) { this.value = value; } /** * @hidden */ public int getFlag() { return value; } private int value; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy