public final class NameConstraints extends ExtensionValue
NameConstraints ::= SEQUENCE {
permittedSubtrees [0] GeneralSubtrees OPTIONAL,
excludedSubtrees [1] GeneralSubtrees OPTIONAL }
GeneralSubtrees ::= SEQUENCE SIZE (1..MAX) OF GeneralSubtree
GeneralSubtree,
GeneralName| Modifier and Type | Field and Description |
|---|---|
static ASN1Sequence |
ASN1
X.509 NameConstraints encoder/decoder.
|
| Constructor and Description |
|---|
NameConstraints(GeneralSubtrees permittedSubtrees,
GeneralSubtrees excludedSubtrees)
Constructs
NameConstrains object |
| Modifier and Type | Method and Description |
|---|---|
static NameConstraints |
decode(byte[] encoding) |
void |
dumpValue(StringBuilder sb,
String prefix) |
byte[] |
getEncoded()
Returns encoded form of the object.
|
boolean |
isAcceptable(List<GeneralName> names)
Check if this list of names is acceptable according to this
NameConstraints object.
|
boolean |
isAcceptable(X509Certificate cert)
Apply the name restrictions specified by this NameConstraints
instance to the subject distinguished name and subject alternative
names of specified X509Certificate.
|
dumpValuepublic static final ASN1Sequence ASN1
public NameConstraints(GeneralSubtrees permittedSubtrees, GeneralSubtrees excludedSubtrees)
NameConstrains objectpublic static NameConstraints decode(byte[] encoding) throws IOException
IOExceptionpublic byte[] getEncoded()
ExtensionValuegetEncoded in class ExtensionValuepublic boolean isAcceptable(X509Certificate cert)
cert - X.509 Certificate to be checked.public boolean isAcceptable(List<GeneralName> names)
public void dumpValue(StringBuilder sb, String prefix)
dumpValue in class ExtensionValue