Exemplo n.º 1
0
 /// <summary>
 /// Creates a Group as an identified group, using a hashed email address as an Inverse Functional Identifier.
 /// <para>The hex-encoded SHA1 hash of a mailto IRI (i.e. the value of an mbox property). An LRS MAY include Agents with a matching hash when a request is based on an mbox.</para>
 /// </summary>
 /// <param name="emailAddress">An email address from which the sha1sum will be calculated and stored (do not include mailto:)</param>
 /// <returns>The created Group.</returns>
 public Group WithHashedMailBoxFromEmail(string emailAddress)
 {
     return(new Group(HashedMailBox.FromEmailAddress(emailAddress), _name, _agents.Any() ? _agents : null));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates the Agent with a hashed email address as an Inverse Functional Identifier.
 /// <para>The hex-encoded SHA1 hash of a mailto IRI (i.e. the value of an mbox property). An LRS MAY include Agents with a matching hash when a request is based on an mbox.</para>
 /// </summary>
 /// <param name="emailAddress">An email address from which the sha1sum will be calculated and stored (do not include mailto:)</param>
 /// <returns>The created Agent.</returns>
 public Agent WithHashedMailBoxFromEmail(string emailAddress)
 {
     return(new Agent(HashedMailBox.FromEmailAddress(emailAddress), _name));
 }