Package org.opensaml.security.x509
Class PKIXValidationOptions
java.lang.Object
org.opensaml.security.x509.PKIXValidationOptions
- Direct Known Subclasses:
CertPathPKIXValidationOptions
Options which may be supplied to influence the processing behavior of a
PKIXTrustEvaluator.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intDefault verification depth.private booleanFlag as to whether CRLs supplied in the untrusted credential being evaluated will be processed.private booleanFlag as to whether empty CRLs will be processed.private booleanFlag as to whether expired CRLs will be processed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThe default PKIX maximum path verification depth, if not supplied in thePKIXValidationInformationbeing evaluated.booleanWhether CRLs supplied within the untrustedX509Credentialbeing evaluated should be processed.booleanWhether empty CRLs should be processed.booleanWhether expired CRLs should be processed.voidsetDefaultVerificationDepth(int depth) The default PKIX maximum path verification depth, if not supplied in thePKIXValidationInformationbeing evaluated.voidsetProcessCredentialCRLs(boolean flag) Whether CRLs supplied within the untrustedX509Credentialbeing evaluated should be processed.voidsetProcessEmptyCRLs(boolean flag) Whether empty CRLs should be processed.voidsetProcessExpiredCRLs(boolean flag) Whether expired CRLs should be processed.
-
Field Details
-
processEmptyCRLs
private boolean processEmptyCRLsFlag as to whether empty CRLs will be processed. -
processExpiredCRLs
private boolean processExpiredCRLsFlag as to whether expired CRLs will be processed. -
processCredentialCRLs
private boolean processCredentialCRLsFlag as to whether CRLs supplied in the untrusted credential being evaluated will be processed. -
defaultVerificationDepth
private int defaultVerificationDepthDefault verification depth.
-
-
Constructor Details
-
PKIXValidationOptions
public PKIXValidationOptions()Constructor.
-
-
Method Details
-
isProcessEmptyCRLs
public boolean isProcessEmptyCRLs()Whether empty CRLs should be processed.Default is: true
- Returns:
- whether empty CRLs should be processed
-
setProcessEmptyCRLs
public void setProcessEmptyCRLs(boolean flag) Whether empty CRLs should be processed.Default is: true
- Parameters:
flag- whether to process empty CRLs
-
isProcessExpiredCRLs
public boolean isProcessExpiredCRLs()Whether expired CRLs should be processed.Default is: true
- Returns:
- whether expired CRLs should be processsed
-
setProcessExpiredCRLs
public void setProcessExpiredCRLs(boolean flag) Whether expired CRLs should be processed.Default is: true
- Parameters:
flag- whether expired CRLs should be processed
-
isProcessCredentialCRLs
public boolean isProcessCredentialCRLs()Whether CRLs supplied within the untrustedX509Credentialbeing evaluated should be processed.Default is: true
- Returns:
- whether to process CRLs from an untrusted credential
-
setProcessCredentialCRLs
public void setProcessCredentialCRLs(boolean flag) Whether CRLs supplied within the untrustedX509Credentialbeing evaluated should be processed.Default is: true
- Parameters:
flag- whether to process CRLs from an untrusted credential
-
getDefaultVerificationDepth
public int getDefaultVerificationDepth()The default PKIX maximum path verification depth, if not supplied in thePKIXValidationInformationbeing evaluated.Default is: 1
- Returns:
- Returns the defaultVerificationDepth.
-
setDefaultVerificationDepth
public void setDefaultVerificationDepth(int depth) The default PKIX maximum path verification depth, if not supplied in thePKIXValidationInformationbeing evaluated.Default is: 1
- Parameters:
depth- default verification depth to set
-