Package org.wildfly.security.x500.cert
Class NameConstraintsExtension
- java.lang.Object
-
- org.wildfly.security.x500.cert.X509CertificateExtension
-
- org.wildfly.security.x500.cert.NameConstraintsExtension
-
- All Implemented Interfaces:
Extension,ASN1Encodable
public final class NameConstraintsExtension extends X509CertificateExtension
A name constraints extension as defined by RFC 5280 ยง 4.2.1.10.- Author:
- David M. Lloyd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNameConstraintsExtension.GeneralSubtreeA general subtree for a name constraint.
-
Constructor Summary
Constructors Constructor Description NameConstraintsExtension(List<NameConstraintsExtension.GeneralSubtree> permittedSubtrees, List<NameConstraintsExtension.GeneralSubtree> excludedSubtrees)Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeTo(ASN1Encoder encoder)Encode this object.StringgetId()Get the OID of this extension.-
Methods inherited from class org.wildfly.security.x500.cert.X509CertificateExtension
encode, getValue, isCritical
-
-
-
-
Constructor Detail
-
NameConstraintsExtension
public NameConstraintsExtension(List<NameConstraintsExtension.GeneralSubtree> permittedSubtrees, List<NameConstraintsExtension.GeneralSubtree> excludedSubtrees)
Construct a new instance.- Parameters:
permittedSubtrees- the permitted subtrees list (must not benull, may be empty)excludedSubtrees- the excluded subtrees list (must not benull, may be empty)
-
-
Method Detail
-
getId
public String 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(ASN1Encoder encoder)
Description copied from interface:ASN1EncodableEncode this object.- Parameters:
encoder- the encoder (must not benull)
-
-