Class ExtendedKeyUsageExtension
java.lang.Object
org.wildfly.security.x500.cert.X509CertificateExtension
org.wildfly.security.x500.cert.ExtendedKeyUsageExtension
- All Implemented Interfaces:
Extension, org.wildfly.security.asn1.ASN1Encodable
An extended key usage extension as defined by RFC 5280 ยง 4.2.1.12.
- Author:
- David M. Lloyd
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedKeyUsageExtension(boolean critical, List<String> keyPurposeIds) Construct a new instance. -
Method Summary
Methods inherited from class X509CertificateExtension
encode, getValue, isCritical
-
Constructor Details
-
ExtendedKeyUsageExtension
Construct a new instance. The key purpose OIDs should typically be chosen from theX500.OID_KP_*constants.- Parameters:
critical-trueto mark this extension as critical,falseto mark it as non-criticalkeyPurposeIds- the key purpose OIDs list (must not benullor empty)
-
-
Method Details
-
getId
Description copied from class:X509CertificateExtensionGet the OID of this extension.- Specified by:
getIdin interfaceExtension- Specified by:
getIdin classX509CertificateExtension- Returns:
- the OID of this extension (must not be
null)
-
encodeTo
public void encodeTo(org.wildfly.security.asn1.ASN1Encoder encoder)
-