IpAddress

@Serializable
value class IpAddress : X509GeneralName(source)

Will be parsed leniently: Any valid ASN.1 OCTET STRING will initially decode; validation is deferred to the getter of value.

Constructors

Link copied to clipboard
constructor(ipAddress: ByteArray)

Validates the length of the passed IP address (+ optional subents, as this class can be used both as SAN or nameConstraints)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

This contains a raw octet string in case someone was "creative" and encoded an IP address in some cursed, structural manner or as a string inside an OCTET STRING and someone else wants to salvage it

Link copied to clipboard

From Swift/Objective-C use the throwing value() accessor (exported as a static value(_:), since value classes are not bridged as Objective-C types).