示例#1
0
 /// <summary>
 /// Creates an instance of a Saml2Assertion.
 /// </summary>
 /// <param name="issuer">Issuer of the assertion.</param>
 public Saml2Assertion(Saml2NameIdentifier issuer)
 {
     Id           = new Saml2Id();
     IssueInstant = DateTime.UtcNow;
     Issuer       = issuer;
     Statements   = new List <Saml2Statement>();
 }
示例#2
0
 /// <summary>
 /// Initializes an instance of <see cref="Saml2Subject"/> from a <see cref="Saml2NameIdentifier"/>.
 /// </summary>
 /// <param name="nameId">The <see cref="Saml2NameIdentifier"/> to use for initialization.</param>
 public Saml2Subject(Saml2NameIdentifier nameId)
 {
     NameId = nameId;
 }