const class crypto::San

sys::Obj
  crypto::San

Source

San defines the api for a Subject Alternative Name based on RFC 5280.

dirName

static new dirName(Str dn)

Source

Create as SanType.dirName

dnsName

static new dnsName(Str name)

Source

Create as SanType.dnsName

fromValue

static new fromValue(Obj value)

Source

Convenience for creating a San from a value.

The value may be one of the following types:

  • Str: returns San.dnsName
  • Uri: returns San.uri
  • AsnOid: returns San.registeredId
  • Buf: returns San.otherName
  • IpAddr: returns San.ipAddr
  • San: returns itself
ipAddr

static new ipAddr(Obj ip)

Source

Create as SanType.ipAddr - Accepts IpAddr or Str (value stored as IpAddr)

otherName

static new otherName(Buf buf)

Source

Create as SanType.otherName

registeredId

static new registeredId(Obj oid)

Source

Create as SanType.registeredId - Accepts AsnOid or Str (value stored as Str)

rfc822Name

static new rfc822Name(Str email)

Source

Create as SanType.rfc822Name

toStr

virtual override Str toStr()

Source

Get a friendly encoding using the format: {SanType.text}:{value}

type

const SanType type

Source

RFC5280 Type

uri

static new uri(Obj uri)

Source

Create as SanType.uri - Accepts Uri or Str (value stored as Str)

val

const Obj val

Source

Get the value determined by the SanType: