Package org.opensaml.security.x509.impl
Class CertPathPKIXValidationOptions
- java.lang.Object
-
- org.opensaml.security.x509.PKIXValidationOptions
-
- org.opensaml.security.x509.impl.CertPathPKIXValidationOptions
-
public class CertPathPKIXValidationOptions extends PKIXValidationOptions
Specialization ofPKIXValidationOptionswhich specifies options specific to aPKIXTrustEvaluatorbased on the Java CertPath API.
-
-
Field Summary
Fields Modifier and Type Field Description private booleananyPolicyInhibitFlag for disallowing the "any" policy OID.private booleanforceRevocationEnabledForce RevocationEnabled flag.private Set<String>initialPoliciesAcceptable policy OIDs.private booleanpolicyMappingInhibitDisable policy mapping flag.private booleanrevocationEnabledValue for RevocationEnabled when forced.
-
Constructor Summary
Constructors Constructor Description CertPathPKIXValidationOptions()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getInitialPolicies()Returns the set of initial policies (OID strings) of the underlying CertPath Provider.booleanisAnyPolicyInhibited()Returns the value of the any policy inhibited flag of the underlying CertPath Provider.booleanisForceRevocationEnabled()If true, the revocation behavior of the underlying CertPath provider will be forced to the value supplied byisRevocationEnabled().booleanisPolicyMappingInhibited()Returns the value of the policy mapping inhibited flag of the underlying CertPath Provider.booleanisRevocationEnabled()IfisForceRevocationEnabled()is true, the revocation behavior of the underlying CertPath Provider will be forced to this value.voidsetAnyPolicyInhibit(boolean flag)Sets the any policy inhibited flag for the underlying CertPath Provider.voidsetForceRevocationEnabled(boolean flag)If true, the revocation behavior of the underlying CertPath provider will be forced to the value supplied byisRevocationEnabled().voidsetInitialPolicies(Set<String> newPolicies)Sets the initial policy identifiers (OID strings) for the underlying CertPath Provider, i.e.voidsetPolicyMappingInhibit(boolean flag)Sets the policy mapping inhibited flag for the underlying CertPath Provider.voidsetRevocationEnabled(boolean flag)IfisForceRevocationEnabled()is true, the revocation behavior of the underlying CertPath Provider will be forced to this value.-
Methods inherited from class org.opensaml.security.x509.PKIXValidationOptions
getDefaultVerificationDepth, isProcessCredentialCRLs, isProcessEmptyCRLs, isProcessExpiredCRLs, setDefaultVerificationDepth, setProcessCredentialCRLs, setProcessEmptyCRLs, setProcessExpiredCRLs
-
-
-
-
Field Detail
-
forceRevocationEnabled
private boolean forceRevocationEnabled
Force RevocationEnabled flag.
-
revocationEnabled
private boolean revocationEnabled
Value for RevocationEnabled when forced.
-
policyMappingInhibit
private boolean policyMappingInhibit
Disable policy mapping flag.
-
anyPolicyInhibit
private boolean anyPolicyInhibit
Flag for disallowing the "any" policy OID.
-
-
Method Detail
-
isForceRevocationEnabled
public boolean isForceRevocationEnabled()
If true, the revocation behavior of the underlying CertPath provider will be forced to the value supplied byisRevocationEnabled(). If false, the revocation behavior of the underlying provider will be determined by the PKIXTrustEvaluator implementation.Default is: false
- Returns:
- whether to force revocation behavior
-
setForceRevocationEnabled
public void setForceRevocationEnabled(boolean flag)
If true, the revocation behavior of the underlying CertPath provider will be forced to the value supplied byisRevocationEnabled(). If false, the revocation behavior of the underlying provider will be determined by the PKIXTrustEvaluator implementation.Default is: false
- Parameters:
flag- whether to force revocation behavior
-
isRevocationEnabled
public boolean isRevocationEnabled()
IfisForceRevocationEnabled()is true, the revocation behavior of the underlying CertPath Provider will be forced to this value. If the former is false, the revocation behavior of the underlying provider will be determined by the PKIXTrustEvaluator implementation.Default is: true
- Returns:
- whether to force revocation if forcing is enabled
-
setRevocationEnabled
public void setRevocationEnabled(boolean flag)
IfisForceRevocationEnabled()is true, the revocation behavior of the underlying CertPath Provider will be forced to this value. If the former is false, the revocation behavior of the underlying provider will be determined by the PKIXTrustEvaluator implementation.Default is: true
- Parameters:
flag- whether to force revocation if forcing is enabled
-
isPolicyMappingInhibited
public boolean isPolicyMappingInhibited()
Returns the value of the policy mapping inhibited flag of the underlying CertPath Provider.- Returns:
- Returns the policyMappingInhibit boolean.
-
setPolicyMappingInhibit
public void setPolicyMappingInhibit(boolean flag)
Sets the policy mapping inhibited flag for the underlying CertPath Provider. See also RFC 5280, section 6.1.1 (e).Default is: false
- Parameters:
flag- the policyMappingInhibit boolean to set.
-
isAnyPolicyInhibited
public boolean isAnyPolicyInhibited()
Returns the value of the any policy inhibited flag of the underlying CertPath Provider.- Returns:
- Returns the anyPolicyInhibit boolean.
-
setAnyPolicyInhibit
public void setAnyPolicyInhibit(boolean flag)
Sets the any policy inhibited flag for the underlying CertPath Provider. See also RFC 5280, section 6.1.1 (g).Default is: false
- Parameters:
flag- the anyPolicyInhibit boolean to set.
-
getInitialPolicies
public Set<String> getInitialPolicies()
Returns the set of initial policies (OID strings) of the underlying CertPath Provider. See also RFC 5280, section 6.1.1 (c).- Returns:
- Returns the initialPolicies set.
-
setInitialPolicies
public void setInitialPolicies(Set<String> newPolicies)
Sets the initial policy identifiers (OID strings) for the underlying CertPath Provider, i.e. those policies that are acceptable to the certificate user. See also RFC 5280, section 6.1.1 (c).- Parameters:
newPolicies- the initial set of policy identifiers (OID strings)
-
-