Class ExtendedKeyUsageExtension
java.lang.Object
com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
com.itextpdf.signatures.validation.v1.extensions.ExtendedKeyUsageExtension
Class representing "Extended Key Usage" extension.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionExtendedKeyUsageExtension
(List<String> extendedKeyUsageOids) Create newExtendedKeyUsageExtension
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
existsInCertificate
(X509Certificate certificate) Check if this extension is present in the provided certificate.Methods inherited from class com.itextpdf.signatures.validation.v1.extensions.CertificateExtension
equals, getExtensionOid, getExtensionValue, hashCode
-
Field Details
-
ANY_EXTENDED_KEY_USAGE_OID
- See Also:
-
TIME_STAMPING
- See Also:
-
OCSP_SIGNING
- See Also:
-
CODE_SIGNING
- See Also:
-
CLIENT_AUTH
- See Also:
-
-
Constructor Details
-
ExtendedKeyUsageExtension
Create newExtendedKeyUsageExtension
instance.- Parameters:
-
extendedKeyUsageOids
- stringsList
, representing extended key usages OIDs
-
-
Method Details
-
existsInCertificate
Check if this extension is present in the provided certificate. In case ofExtendedKeyUsageExtension
, check if this extended key usage OIDs are present. Other values may be present as well.- Overrides:
-
existsInCertificate
in classCertificateExtension
- Parameters:
-
certificate
-X509Certificate
in which this extension shall be present - Returns:
-
true
if all OIDs are present in certificate extension,false
otherwise
-