Class X509CRLStoreSelector
- All Implemented Interfaces:
Cloneable,CRLSelector,Selector
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Returns the attribute certificate being checked.static X509CRLStoreSelectorgetInstance(X509CRLSelector selector) Returns an instance of this from aX509CRLSelector.byte[]Returns the issuing distribution point.Get the maximum base CRL number.booleanIftrueonly complete CRLs are returned.booleanReturns if this selector must match CRLs with the delta CRL indicator extension set.booleanReturns if the issuing distribution point criteria should be applied.booleanMatch the passed in object, returning true if it would be selected by this selector, false otherwise.booleanvoidSets the attribute certificate being checked.voidsetCompleteCRLEnabled(boolean completeCRLEnabled) If set totrueonly complete CRLs are returned.voidsetDeltaCRLIndicatorEnabled(boolean deltaCRLIndicator) If this is set totruethe CRL reported contains the delta CRL indicator CRL extension.voidsetIssuingDistributionPoint(byte[] issuingDistributionPoint) Sets the issuing distribution point.voidsetIssuingDistributionPointEnabled(boolean issuingDistributionPointEnabled) Enables or disables the issuing distribution point check.voidsetMaxBaseCRLNumber(BigInteger maxBaseCRLNumber) Sets the maximum base CRL number.Methods inherited from class java.security.cert.X509CRLSelector
addIssuer, addIssuerName, addIssuerName, getCertificateChecking, getDateAndTime, getIssuerNames, getIssuers, getMaxCRL, getMinCRL, setCertificateChecking, setDateAndTime, setIssuerNames, setIssuers, setMaxCRLNumber, setMinCRLNumber, toString
-
Constructor Details
-
X509CRLStoreSelector
public X509CRLStoreSelector()
-
-
Method Details
-
isIssuingDistributionPointEnabled
public boolean isIssuingDistributionPointEnabled()Returns if the issuing distribution point criteria should be applied. Defaults tofalse.You may also set the issuing distribution point criteria if not a missing issuing distribution point should be assumed.
- Returns:
- Returns if the issuing distribution point check is enabled.
-
setIssuingDistributionPointEnabled
public void setIssuingDistributionPointEnabled(boolean issuingDistributionPointEnabled) Enables or disables the issuing distribution point check.- Parameters:
issuingDistributionPointEnabled-trueto enable the issuing distribution point check.
-
setAttrCertificateChecking
Sets the attribute certificate being checked. This is not a criterion. Rather, it is optional information that may help aX509Storefind CRLs that would be relevant when checking revocation for the specified attribute certificate. Ifnullis specified, then no such optional information is provided.- Parameters:
attrCert- theX509AttributeCertificatebeing checked (ornull)- See Also:
-
getAttrCertificateChecking
Returns the attribute certificate being checked.- Returns:
- Returns the attribute certificate being checked.
- See Also:
-
match
Description copied from interface:SelectorMatch the passed in object, returning true if it would be selected by this selector, false otherwise. -
match
- Specified by:
matchin interfaceCRLSelector- Overrides:
matchin classX509CRLSelector
-
isDeltaCRLIndicatorEnabled
public boolean isDeltaCRLIndicatorEnabled()Returns if this selector must match CRLs with the delta CRL indicator extension set. Defaults tofalse.- Returns:
- Returns
trueif only CRLs with the delta CRL indicator extension are selected.
-
setDeltaCRLIndicatorEnabled
public void setDeltaCRLIndicatorEnabled(boolean deltaCRLIndicator) If this is set totruethe CRL reported contains the delta CRL indicator CRL extension.setCompleteCRLEnabled(boolean)andsetDeltaCRLIndicatorEnabled(boolean)excluded each other.- Parameters:
deltaCRLIndicator-trueif the delta CRL indicator extension must be in the CRL.
-
getInstance
Returns an instance of this from aX509CRLSelector.- Parameters:
selector- AX509CRLSelectorinstance.- Returns:
- An instance of an
X509CRLStoreSelector. - Throws:
IllegalArgumentException- if selector is null or creation fails.
-
clone
- Specified by:
clonein interfaceCRLSelector- Specified by:
clonein interfaceSelector- Overrides:
clonein classX509CRLSelector
-
isCompleteCRLEnabled
public boolean isCompleteCRLEnabled()Iftrueonly complete CRLs are returned. Defaults tofalse.- Returns:
trueif only complete CRLs are returned.
-
setCompleteCRLEnabled
public void setCompleteCRLEnabled(boolean completeCRLEnabled) If set totrueonly complete CRLs are returned.setCompleteCRLEnabled(boolean)andsetDeltaCRLIndicatorEnabled(boolean)excluded each other.- Parameters:
completeCRLEnabled-trueif only complete CRLs should be returned.
-
getMaxBaseCRLNumber
Get the maximum base CRL number. Defaults tonull.- Returns:
- Returns the maximum base CRL number.
- See Also:
-
setMaxBaseCRLNumber
Sets the maximum base CRL number. Setting tonulldisables this cheack.This is only meaningful for delta CRLs. Complete CRLs must have a CRL number which is greater or equal than the base number of the corresponding CRL.
- Parameters:
maxBaseCRLNumber- The maximum base CRL number to set.
-
getIssuingDistributionPoint
public byte[] getIssuingDistributionPoint()Returns the issuing distribution point. Defaults tonull, which is a missing issuing distribution point extension.The internal byte array is cloned before it is returned.
The criteria must be enable with
setIssuingDistributionPointEnabled(boolean).- Returns:
- Returns the issuing distribution point.
- See Also:
-
setIssuingDistributionPoint
public void setIssuingDistributionPoint(byte[] issuingDistributionPoint) Sets the issuing distribution point.The issuing distribution point extension is a CRL extension which identifies the scope and the distribution point of a CRL. The scope contains among others information about revocation reasons contained in the CRL. Delta CRLs and complete CRLs must have matching issuing distribution points.
The byte array is cloned to protect against subsequent modifications.
You must also enable or disable this criteria with
setIssuingDistributionPointEnabled(boolean).- Parameters:
issuingDistributionPoint- The issuing distribution point to set. This is the DER encoded OCTET STRING extension value.- See Also:
-