Exemple #1
0
 /// <summary>Gets a value indicating whether this security token is capable of creating the specified key identifier.</summary>
 public override bool CanCreateKeyIdentifierClause <T>()
 {
     this.ThrowIfDisposed();
     if (typeof(T) == typeof(X509SubjectKeyIdentifierClause))
     {
         return(X509SubjectKeyIdentifierClause.CanCreateFrom(this.certificate));
     }
     if (!(typeof(T) == typeof(X509ThumbprintKeyIdentifierClause)) && !(typeof(T) == typeof(X509IssuerSerialKeyIdentifierClause)) && !(typeof(T) == typeof(X509RawDataKeyIdentifierClause)))
     {
         return(base.CanCreateKeyIdentifierClause <T>());
     }
     return(true);
 }