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