Class CertificateSources
- java.lang.Object
-
- com.itextpdf.signatures.validation.context.CertificateSources
-
public final class CertificateSources extends java.lang.Object
Container class, which contains set of singleCertificateSource
values.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.EnumSet<CertificateSource>
set
-
Constructor Summary
Constructors Modifier Constructor Description private
CertificateSources(java.util.EnumSet<CertificateSource> set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateSources
all()
CreatesCertificateSources
containing allCertificateSource
values.static CertificateSources
complementOf(CertificateSources other)
CreatesCertificateSources
containing all the elements of this type that are not contained in the specified set.java.util.EnumSet<CertificateSource>
getSet()
Gets encapsulatedEnumSet
containingCertificateSource
elements.static CertificateSources
of(CertificateSource first, CertificateSource... rest)
CreatesCertificateSources
container from severalCertificateSource
values.
-
-
-
Field Detail
-
set
private final java.util.EnumSet<CertificateSource> set
-
-
Constructor Detail
-
CertificateSources
private CertificateSources(java.util.EnumSet<CertificateSource> set)
-
-
Method Detail
-
of
public static CertificateSources of(CertificateSource first, CertificateSource... rest)
CreatesCertificateSources
container from severalCertificateSource
values.- Parameters:
first
- an element that the set is to contain initiallyrest
- the remaining elements the set is to contain- Returns:
CertificateSources
container, containing provided elements
-
all
public static CertificateSources all()
CreatesCertificateSources
containing allCertificateSource
values.- Returns:
CertificateSources
container containing allCertificateSource
values
-
complementOf
public static CertificateSources complementOf(CertificateSources other)
CreatesCertificateSources
containing all the elements of this type that are not contained in the specified set.- Parameters:
other
- anotherCertificateSources
from whose complement to initialize this container- Returns:
- the complement of the specified
CertificateSources
.
-
getSet
public java.util.EnumSet<CertificateSource> getSet()
Gets encapsulatedEnumSet
containingCertificateSource
elements.- Returns:
- encapsulated
EnumSet
containingCertificateSource
elements
-
-