com.pdftools.signaturevalidation.profiles.RevocationCheckPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pdftools-sdk Show documentation
Show all versions of pdftools-sdk Show documentation
The Pdftools SDK is a comprehensive development library that lets developers integrate advanced PDF functionalities into in-house applications.
/****************************************************************************
*
* File: RevocationCheckPolicy.java
*
* Description: RevocationCheckPolicy 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.profiles;
/**
* The revocation check policy
*/
public enum RevocationCheckPolicy
{
/**
*
*
* -
* Certificate must have revocation information (OCSP or CRL)
* -
* Revocation information is acquired from revocation sources
* -
* Revocation information is validated
*
*/
REQUIRED(1),
/**
*
* Same as {@code Required} for certificates that have revocation information and {@code NoCheck} otherwise.
*/
SUPPORTED(2),
/**
*
* Same as {@code Supported} if revocation information is available in the {@code RevocationInformationSources} and {@code NoCheck} otherwise.
*/
OPTIONAL(3),
/**
* Do not check revocation information.
*/
NO_CHECK(4);
RevocationCheckPolicy(int value)
{
this.value = value;
}
/**
* @hidden
*/
public static RevocationCheckPolicy fromValue(int value)
{
switch (value)
{
case 1: return REQUIRED;
case 2: return SUPPORTED;
case 3: return OPTIONAL;
case 4: return NO_CHECK;
}
throw new IllegalArgumentException("Unknown value for RevocationCheckPolicy: " + value);
}
/**
* @hidden
*/
public int getValue()
{
return value;
}
private int value;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy