const class crypto::San
sys::Obj crypto::San
San defines the api for a Subject Alternative Name based on RFC 5280.
- dirName
-
static new dirName(Str dn)Create as SanType.dirName
- dnsName
-
static new dnsName(Str name)Create as SanType.dnsName
- fromValue
-
static new fromValue(Obj value)Convenience for creating a San from a value.
The
valuemay be one of the following types:Str: returns San.dnsNameUri: returns San.uriAsnOid: returns San.registeredIdBuf: returns San.otherNameIpAddr: returns San.ipAddrSan: returns itself
- ipAddr
-
static new ipAddr(Obj ip)Create as SanType.ipAddr - Accepts IpAddr or Str (value stored as IpAddr)
- otherName
-
static new otherName(Buf buf)Create as SanType.otherName
- registeredId
-
static new registeredId(Obj oid)Create as SanType.registeredId - Accepts AsnOid or Str (value stored as Str)
- rfc822Name
-
static new rfc822Name(Str email)Create as SanType.rfc822Name
- toStr
-
virtual override Str toStr()Get a friendly encoding using the format: {SanType.text}:{value}
- type
-
const SanType typeRFC5280 Type
- uri
-
static new uri(Obj uri)Create as SanType.uri - Accepts Uri or Str (value stored as Str)
- val
-
const Obj valGet the value determined by the SanType:
- SanType.dnsName: Str
- SanType.rfc822Name: Str
- SanType.uri: Str
- SanType.registeredId: Str
- SanType.dirName: Str
- SanType.ipAddr: IpAddr
- SanType.otherName: Buf (DER-encoded SEQUENCE)