iText 9.0.0 API
|
This class consists of some methods that allow you to verify certificates. More...
Static Public Member Functions |
|
static String | VerifyCertificate (IX509Certificate cert, ICollection< IX509Crl > crls) |
Verifies a single certificate for the current date. More... |
|
static String | VerifyCertificate (IX509Certificate cert, ICollection< IX509Crl > crls, DateTime calendar) |
Verifies a single certificate. More... |
|
static IList< VerificationException > | VerifyCertificates (IX509Certificate[] certs, List< IX509Certificate > keystore, ICollection< IX509Crl > crls) |
Verifies a certificate chain against a KeyStore for the current date. More... |
|
static IList< VerificationException > | VerifyCertificates (IX509Certificate[] certs, List< IX509Certificate > keystore, ICollection< IX509Crl > crls, DateTime calendar) |
Verifies a certificate chain against a KeyStore. More... |
|
static IList< VerificationException > | VerifyCertificates (IX509Certificate[] certs, List< IX509Certificate > keystore) |
Verifies a certificate chain against a KeyStore for the current date. More... |
|
static IList< VerificationException > | VerifyCertificates (IX509Certificate[] certs, List< IX509Certificate > keystore, DateTime calendar) |
Verifies a certificate chain against a KeyStore. More... |
|
static bool | VerifyOcspCertificates (IBasicOcspResponse ocsp, List< IX509Certificate > keystore) |
Verifies an OCSP response against a KeyStore. More... |
|
static bool | VerifyTimestampCertificates (ITimeStampToken ts, List< IX509Certificate > keystore) |
Verifies a time stamp against a KeyStore. More... |
|
Static Public Attributes |
|
const String | HAS_UNSUPPORTED_EXTENSIONS = "Has unsupported critical extension" |
const String | CERTIFICATE_REVOKED = "Certificate revoked" |
Static Package Functions |
|
static bool | HasUnsupportedCriticalExtension (IX509Certificate cert) |
Check if the provided certificate has a critical extension that iText doesn't support. More... |
|
This class consists of some methods that allow you to verify certificates.
|
inlinestaticpackage |
Check if the provided certificate has a critical extension that iText doesn't support.
cert | X509Certificate instance to check |
true
if there are unsupported critical extensions, false if there are none
|
inlinestatic |
Verifies a single certificate for the current date.
cert | the certificate to verify |
crls | the certificate revocation list or null |
String
with the error description or null
if no error
|
inlinestatic |
Verifies a single certificate.
cert | the certificate to verify |
crls | the certificate revocation list or null |
calendar | the date, shall not be null |
String
with the error description or null
if no error
|
inlinestatic |
Verifies a certificate chain against a KeyStore for the current date.
certs | the certificate chain |
keystore | the KeyStore |
null
if the certificate chain could be validated or a Object[]{cert,error}
where cert
is the failed certificate and error
is the error message
|
inlinestatic |
Verifies a certificate chain against a KeyStore.
certs | the certificate chain |
keystore | the KeyStore |
calendar | the date, shall not be null |
null
if the certificate chain could be validated or a Object[]{cert,error}
where cert
is the failed certificate and error
is the error message
|
inlinestatic |
Verifies a certificate chain against a KeyStore for the current date.
certs | the certificate chain |
keystore | the KeyStore |
crls | the certificate revocation list or null |
Object[]{cert,error}
where cert
is the failed certificate and error
is the error message
|
inlinestatic |
Verifies a certificate chain against a KeyStore.
certs | the certificate chain |
keystore | the KeyStore |
crls | the certificate revocation list or null |
calendar | the date, shall not be null |
Object[]{cert,error}
where cert
is the failed certificate and error
is the error message
|
inlinestatic |
Verifies an OCSP response against a KeyStore.
ocsp | the OCSP response |
keystore | the KeyStore |
true
is a certificate was found
|
inlinestatic |
Verifies a time stamp against a KeyStore.
ts | the time stamp |
keystore | the KeyStore |
true
is a certificate was found