Beryl::Certificates::DistinguishedName
An X.501 distinguished name (RFC 5280 §4.1.2.4): a sequence of relative distinguished names, each a set of attribute type and value pairs.
Names are compared byte for byte on their encoding, as Go, rustls-webpki and BoringSSL compare issuer and subject when building paths; the RFC 4518 string preparation that RFC 5280 §7.1 describes is not applied.
Constructors
Class methods
Why value cannot be an attribute value, or nil when it can. A
value is a UTF8String, PrintableString, TeletexString, IA5String,
NumericString, UniversalString or BMPString with contents that type
allows, a BIT STRING (x500UniqueIdentifier) or a SEQUENCE: the types
OpenSSL accepts in names. RFC 5280 declares AttributeValue as
ANY, but every other type is refused so that a name means the same
here as in other verifiers.
Instance methods
Every attribute of type type, in order.
Returns whether this name begins with every relative distinguished name of prefix, in order: the test a directoryName name constraint applies (RFC 5280 §4.2.1.10). Each relative name is compared on its encoding.