コード例 #1
0
 /// <summary>
 /// Initializes an instance of <see cref="SamlSecurityToken"/>.
 /// </summary>
 /// <param name="assertion">A <see cref="SamlAssertion"/> to initialize from.</param>
 public SamlSecurityToken(SamlAssertion assertion)
 {
     Assertion = assertion ?? throw LogArgumentNullException(nameof(assertion));
 }
コード例 #2
0
 /// <summary>
 /// Initializes an instance of <see cref="SamlSecurityToken"/>.
 /// </summary>
 protected SamlSecurityToken()
 {
     Assertion = new SamlAssertion("_" + Guid.NewGuid().ToString(), ClaimsIdentity.DefaultIssuer, DateTime.UtcNow, new SamlConditions(), new SamlAdvice(), new List <SamlStatement>());
 }