|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.jce.cert.X509CRLSelector | +--org.bouncycastle.x509.X509CRLStoreSelector
This class is a Selector implementation for X.509 certificate revocation lists.
Selector
,
X509Store
,
X509StoreCRLCollection
Constructor Summary | |
X509CRLStoreSelector()
|
Method Summary | |
java.lang.Object |
clone()
Returns a copy of this object. |
X509AttributeCertificate |
getAttrCertificateChecking()
Returns the attribute certificate being checked. |
static X509CRLStoreSelector |
getInstance(X509CRLSelector selector)
Returns an instance of this from a X509CRLSelector. |
byte[] |
getIssuingDistributionPoint()
Returns the issuing distribution point. |
java.math.BigInteger |
getMaxBaseCRLNumber()
Get the maximum base CRL number. |
boolean |
isCompleteCRLEnabled()
If true only complete CRLs are returned. |
boolean |
isDeltaCRLIndicatorEnabled()
Returns if this selector must match CRLs with the delta CRL indicator extension set. |
boolean |
isIssuingDistributionPointEnabled()
Returns if the issuing distribution point criteria should be applied. |
boolean |
match(java.security.cert.CRL crl)
Decides whether a CRL should be selected. Uses X509Name.toString to
parse and to compare the crl parameter issuer and
CRLNumber to
access the CRL number extension. |
boolean |
match(java.lang.Object obj)
|
void |
setAttrCertificateChecking(X509AttributeCertificate attrCert)
Sets the attribute certificate being checked. |
void |
setCompleteCRLEnabled(boolean completeCRLEnabled)
If set to true only complete CRLs are returned. |
void |
setDeltaCRLIndicatorEnabled(boolean deltaCRLIndicator)
If this is set to true the CRL reported contains the delta CRL indicator CRL extension. |
void |
setIssuingDistributionPoint(byte[] issuingDistributionPoint)
Sets the issuing distribution point. |
void |
setIssuingDistributionPointEnabled(boolean issuingDistributionPointEnabled)
Enables or disables the issuing distribution point check. |
void |
setMaxBaseCRLNumber(java.math.BigInteger maxBaseCRLNumber)
Sets the maximum base CRL number. |
Methods inherited from class org.bouncycastle.jce.cert.X509CRLSelector |
addIssuerName, addIssuerName, equals, getCertificateChecking, getDateAndTime, getIssuerNames, getMaxCRL, getMinCRL, setCertificateChecking, setDateAndTime, setIssuerNames, setMaxCRLNumber, setMinCRLNumber, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public X509CRLStoreSelector()
Method Detail |
public boolean isIssuingDistributionPointEnabled()
You may also set the issuing distribution point criteria if not a missing issuing distribution point should be assumed.
public void setIssuingDistributionPointEnabled(boolean issuingDistributionPointEnabled)
issuingDistributionPointEnabled
- true to enable the
issuing distribution point check.public void setAttrCertificateChecking(X509AttributeCertificate attrCert)
X509Store
find
CRLs that would be relevant when checking revocation for the specified
attribute certificate. If null is specified, then no such
optional information is provided.attrCert
- the X509AttributeCertificate being checked (or
null)getAttrCertificateChecking()
public X509AttributeCertificate getAttrCertificateChecking()
setAttrCertificateChecking(X509AttributeCertificate)
public boolean match(java.lang.Object obj)
match
in interface Selector
public boolean match(java.security.cert.CRL crl)
X509CRLSelector
X509Name.toString
to
parse and to compare the crl parameter issuer and
CRLNumber
to
access the CRL number extension.match
in class X509CRLSelector
org.bouncycastle.jce.cert.X509CRLSelector
crl
- the CRL to be checkedpublic boolean isDeltaCRLIndicatorEnabled()
public void setDeltaCRLIndicatorEnabled(boolean deltaCRLIndicator)
setCompleteCRLEnabled(boolean)
and
setDeltaCRLIndicatorEnabled(boolean)
excluded each other.
deltaCRLIndicator
- true if the delta CRL indicator
extension must be in the CRL.public static X509CRLStoreSelector getInstance(X509CRLSelector selector)
selector
- A X509CRLSelector instance.java.lang.IllegalArgumentException
- if selector is null or creation
fails.public java.lang.Object clone()
X509CRLSelector
clone
in interface Selector
clone
in class X509CRLSelector
org.bouncycastle.jce.cert.X509CRLSelector
public boolean isCompleteCRLEnabled()
public void setCompleteCRLEnabled(boolean completeCRLEnabled)
setCompleteCRLEnabled(boolean)
and
setDeltaCRLIndicatorEnabled(boolean)
excluded each other.
completeCRLEnabled
- true if only complete CRLs
should be returned.public java.math.BigInteger getMaxBaseCRLNumber()
setMaxBaseCRLNumber(BigInteger)
public void setMaxBaseCRLNumber(java.math.BigInteger maxBaseCRLNumber)
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.
maxBaseCRLNumber
- The maximum base CRL number to set.public byte[] getIssuingDistributionPoint()
The internal byte array is cloned before it is returned.
The criteria must be enable with
setIssuingDistributionPointEnabled(boolean)
.
setIssuingDistributionPoint(byte[])
public void setIssuingDistributionPoint(byte[] issuingDistributionPoint)
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)
.
issuingDistributionPoint
- The issuing distribution point to set.
This is the DER encoded OCTET STRING extension value.getIssuingDistributionPoint()
|
Bouncy Castle Cryptography Library 1.77.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |