struct

Beryl::Certificates::GeneralName

Inherits Struct < Value < Object

One GeneralName (RFC 5280 §4.2.1.6), as subject alternative names and name constraints carry them.

Constructors

new(kind : Kind, value : Bytes, directory_name : DistinguishedName | Nil = nil)
Source
read(reader : Encoding::DER::Reader) : GeneralName

Reads one GeneralName. IA5String values must be ASCII (X.680 §41).

Source

Class methods

read_list(reader : Encoding::DER::Reader) : Array(GeneralName)

Reads a SEQUENCE OF GeneralName (GeneralNames).

Source

Instance methods

directory_name
Source
kind
Source
text

The value as text, for the three IA5String kinds.

Source
value

The contents: the IA5String bytes for the three text kinds, the address bytes for an IP address (4 or 16 bytes in a subject alternative name, 8 or 32 with the mask in a name constraint), the encoded Name for a directory name, the raw contents otherwise.

Source

Nested types