コード例 #1
0
        internal Certificate ApplyTo(Certificate cert)
        {
            if (cert == null)
            {
                return cert;
            }
            
            if (this.Status != null && Status.Value != cert.Status)
            {
                return null;
            }
            
            if (!this.IncludeData)
            {
                cert.ClearData();
            }
            else if (!this.IncludePrivateKey)
            {
                cert.ExcludePrivateKey();
            }

            return cert;
        }