Package org.opensaml.security.x509.impl
Class BasicPKIXValidationInformation
- java.lang.Object
-
- org.opensaml.security.x509.impl.BasicPKIXValidationInformation
-
- All Implemented Interfaces:
PKIXValidationInformation
public class BasicPKIXValidationInformation extends Object implements PKIXValidationInformation
Basic implementation ofPKIXValidationInformation.
-
-
Field Summary
Fields Modifier and Type Field Description private Collection<X509Certificate>trustAnchorsCerts used as the trust anchors.private Collection<X509CRL>trustedCRLsCRLs used during validation.private IntegerverificationDepthMax verification depth during PKIX validation.
-
Constructor Summary
Constructors Constructor Description BasicPKIXValidationInformation(Collection<X509Certificate> anchors, Collection<X509CRL> crls, Integer depth)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<X509Certificate>getCertificates()Gets the certificate trust anchors used during PKIX validation.Collection<X509CRL>getCRLs()Gets the CRLs used during PKIX validation.IntegergetVerificationDepth()Gets the maximum allowable trust chain verification depth.
-
-
-
Field Detail
-
trustAnchors
private final Collection<X509Certificate> trustAnchors
Certs used as the trust anchors.
-
trustedCRLs
private final Collection<X509CRL> trustedCRLs
CRLs used during validation.
-
verificationDepth
private final Integer verificationDepth
Max verification depth during PKIX validation.
-
-
Constructor Detail
-
BasicPKIXValidationInformation
public BasicPKIXValidationInformation(@Nullable @ParameterName(name="anchors") Collection<X509Certificate> anchors, @Nullable @ParameterName(name="crls") Collection<X509CRL> crls, @Nullable @ParameterName(name="depth") Integer depth)
Constructor.- Parameters:
anchors- certs used as trust anchors during validationcrls- CRLs used during validationdepth- max verification path depth
-
-
Method Detail
-
getCRLs
@Nullable public Collection<X509CRL> getCRLs()
Gets the CRLs used during PKIX validation.- Specified by:
getCRLsin interfacePKIXValidationInformation- Returns:
- CRLs used during PKIX validation
-
getCertificates
@Nullable public Collection<X509Certificate> getCertificates()
Gets the certificate trust anchors used during PKIX validation.- Specified by:
getCertificatesin interfacePKIXValidationInformation- Returns:
- trust anchors used during PKIX validation
-
getVerificationDepth
@Nullable public Integer getVerificationDepth()
Gets the maximum allowable trust chain verification depth.- Specified by:
getVerificationDepthin interfacePKIXValidationInformation- Returns:
- maximum allowable trust chain verification depth
-
-