Package org.bouncycastle.x509
Class PKIXAttrCertChecker
java.lang.Object
org.bouncycastle.x509.PKIXAttrCertChecker
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
check
(X509AttributeCertificate attrCert, CertPath certPath, CertPath holderCertPath, Collection unresolvedCritExts) Performs checks on the specified attribute certificate.abstract Object
clone()
Returns a clone of this object.abstract Set
Returns an immutableSet
of X.509 attribute certificate extensions that thisPKIXAttrCertChecker
supports ornull
if no extensions are supported.
-
Constructor Details
-
PKIXAttrCertChecker
public PKIXAttrCertChecker()
-
-
Method Details
-
getSupportedExtensions
Returns an immutableSet
of X.509 attribute certificate extensions that thisPKIXAttrCertChecker
supports ornull
if no extensions are supported.Each element of the set is a
String
representing the Object Identifier (OID) of the X.509 extension that is supported.All X.509 attribute certificate extensions that a
PKIXAttrCertChecker
might possibly be able to process should be included in the set.- Returns:
- an immutable
Set
of X.509 extension OIDs (inString
format) supported by thisPKIXAttrCertChecker
, ornull
if no extensions are supported
-
check
public abstract void check(X509AttributeCertificate attrCert, CertPath certPath, CertPath holderCertPath, Collection unresolvedCritExts) throws CertPathValidatorException Performs checks on the specified attribute certificate. Every handled extension is rmeoved from theunresolvedCritExts
collection.- Parameters:
attrCert
- The attribute certificate to be checked.certPath
- The certificate path which belongs to the attribute certificate issuer public key certificate.holderCertPath
- The certificate path which belongs to the holder certificate.unresolvedCritExts
- aCollection
of OID strings representing the current set of unresolved critical extensions- Throws:
CertPathValidatorException
- if the specified attribute certificate does not pass the check.
-
clone
Returns a clone of this object.
-