struct Identity

Identification type.

It is an union identity, possible type as follows:

a) ID_FQDN:
A fully-qualified domain name string. An example of a ID_FQDN is, "example.com". The string MUST not contain any terminators (e.g., NULL, CR, etc.).

b) ID_RFC822_ADDR:
A fully-qualified RFC822 email address string, An example of a ID_RFC822_ADDR is, "jsmith@example.com". The string MUST not contain any terminators.

c) ID_IPV4_ADDR:
A single four (4) octet IPv4 address.

d) ID_IPV6_ADDR:
A single sixteen (16) octet IPv6 address.

e) DN_X509:
Distinguished name in the X.509 tradition.

References from:
Ikev1PolicyProfile; Ikev1Session; Ikev2PolicyProfile; Ikev2Session;
string
dnX509
Specifies the identity as a distinguished name in the X.509 tradition.
FqdnStr
fqdnString
Specifies the identity as a fully-qualified domain name string.

An example is, "example.com".
The string MUST not contain any terminators (e.g., NULL, CR, etc.).
Ipv4UnicastAddressStr
ipv4Address
Specifies the identity as a single four (4) octet IPv4 address.

An example is, "10.10.10.10".
Ipv6AddressStr
ipv6Address
Specifies the identity as a single sixteen (16) octet IPv6 address.

An example is, "FF01::101, 2001:DB8:0:0:8:800:200C:417A ".
Rfc822AddressStr
rfc822AddressString
Specifies the identity as a fully-qualified RFC822 email address string.

An example is, "jsmith@example.com".
The string MUST not contain any terminators (e.g., NULL, CR, etc.).
  struct Identity