Ejemplo n.º 1
0
 internal X509SecurityToken(X509Certificate2 certificate, bool clone, bool disposable)
     : this(certificate, SecurityUniqueId.Create().Value, clone, disposable)
 {
 }
Ejemplo n.º 2
0
 /// <summary>Initializes a new instance of the <see cref="T:System.IdentityModel.Tokens.X509SecurityToken" /> class using the specified X.509 certificate. </summary>
 /// <param name="certificate">An <see cref="T:System.Security.Cryptography.X509Certificates.X509Certificate2" /> that contains the X.509 certificate. Sets the <see cref="P:System.IdentityModel.Tokens.X509SecurityToken.Certificate" /> property.</param>
 /// <exception cref="T:System.ArgumentNullException">
 /// <paramref name="certificate" /> is <see langword="null" />.</exception>
 public X509SecurityToken(X509Certificate2 certificate)
     : this(certificate, SecurityUniqueId.Create().Value)
 {
 }