public class ExtendedKeyUsageExtension extends CertificateExtension
| Modifier and Type | Field and Description |
|---|---|
static String |
ANY_EXTENDED_KEY_USAGE_OID |
static String |
CLIENT_AUTH |
static String |
CODE_SIGNING |
static String |
OCSP_SIGNING |
static String |
TIME_STAMPING |
| Constructor and Description |
|---|
ExtendedKeyUsageExtension(List<String> extendedKeyUsageOids)
Create new
ExtendedKeyUsageExtension instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
existsInCertificate(X509Certificate certificate)
Check if this extension is present in the provided certificate.
|
equals, getExtensionOid, getExtensionValue, hashCodepublic static final String ANY_EXTENDED_KEY_USAGE_OID
public static final String TIME_STAMPING
public static final String OCSP_SIGNING
public static final String CODE_SIGNING
public static final String CLIENT_AUTH
public ExtendedKeyUsageExtension(List<String> extendedKeyUsageOids)
ExtendedKeyUsageExtension instance.extendedKeyUsageOids - strings List, representing extended key usages OIDspublic boolean existsInCertificate(X509Certificate certificate)
ExtendedKeyUsageExtension,
check if this extended key usage OIDs are present. Other values may be present as well.existsInCertificate in class CertificateExtensioncertificate - X509Certificate in which this extension shall be presenttrue if all OIDs are present in certificate extension, false otherwiseCopyright © 1998–2024 Apryse Group NV. All rights reserved.