Package org.wildfly.security.x500.cert
Class NameConstraintsExtension.GeneralSubtree
- java.lang.Object
-
- org.wildfly.security.x500.cert.NameConstraintsExtension.GeneralSubtree
-
- All Implemented Interfaces:
ASN1Encodable
- Enclosing class:
- NameConstraintsExtension
public static final class NameConstraintsExtension.GeneralSubtree extends Object implements ASN1Encodable
A general subtree for a name constraint.
-
-
Field Summary
Fields Modifier and Type Field Description private GeneralName
base
private int
maximumDistance
private int
minimumDistance
-
Constructor Summary
Constructors Constructor Description GeneralSubtree(GeneralName base, int minimumDistance, int maximumDistance)
Construct a new instance.
-
-
-
Field Detail
-
base
private final GeneralName base
-
minimumDistance
private final int minimumDistance
-
maximumDistance
private final int maximumDistance
-
-
Constructor Detail
-
GeneralSubtree
public GeneralSubtree(GeneralName base, int minimumDistance, int maximumDistance)
Construct a new instance.- Parameters:
base
- the base name (must not benull
)minimumDistance
- the minimum distance (must be >= 0)maximumDistance
- the maximum distance (must be -1 indicating "not specified" or >=minimumDistance
)
-
-
Method Detail
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from interface:ASN1Encodable
Encode this object.- Specified by:
encodeTo
in interfaceASN1Encodable
- Parameters:
encoder
- the encoder (must not benull
)
-
-