• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# DerObjectIdentifier类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中DerObjectIdentifier的典型用法代码示例。如果您正苦于以下问题:C# DerObjectIdentifier类的具体用法?C# DerObjectIdentifier怎么用?C# DerObjectIdentifier使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



DerObjectIdentifier类属于命名空间,在下文中一共展示了DerObjectIdentifier类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ContentHints

		public ContentHints(
			DerObjectIdentifier	contentType,
			DerUtf8String		contentDescription)
		{
			this.contentType = contentType;
			this.contentDescription = contentDescription;
		}
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:ContentHints.cs


示例2: CertBag

		public CertBag(
            DerObjectIdentifier	certID,
            Asn1Object			certValue)
        {
            this.certID = certID;
            this.certValue = certValue;
        }
开发者ID:ktw,项目名称:OutlookPrivacyPlugin,代码行数:7,代码来源:CertBag.cs


示例3: PerformTest

		public override void PerformTest()
		{
			DerUtf8String contentDescription = new DerUtf8String("Description");
			DerObjectIdentifier contentType = new DerObjectIdentifier("1.2.2.3");

			ContentHints hints = new ContentHints(contentType);

			checkConstruction(hints, contentType, null);

			hints = new ContentHints(contentType, contentDescription);

			checkConstruction(hints, contentType, contentDescription);

			hints = ContentHints.GetInstance(null);

			if (hints != null)
			{
				Fail("null GetInstance() failed.");
			}

			try
			{
				ContentHints.GetInstance(new Object());

				Fail("GetInstance() failed to detect bad object.");
			}
			catch (ArgumentException)
			{
				// expected
			}
		}
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:31,代码来源:ContentHintsUnitTest.cs


示例4: EncryptedContentInfoParser

		public EncryptedContentInfoParser(
			Asn1SequenceParser seq)
		{
			_contentType = (DerObjectIdentifier)seq.ReadObject();
			_contentEncryptionAlgorithm = AlgorithmIdentifier.GetInstance(seq.ReadObject().ToAsn1Object());
			_encryptedContent = (Asn1TaggedObjectParser)seq.ReadObject();
		}
开发者ID:htlp,项目名称:itextsharp,代码行数:7,代码来源:EncryptedContentInfoParser.cs


示例5: Attribute

		public Attribute(
            DerObjectIdentifier attrType,
            Asn1Set             attrValues)
        {
            this.attrType = attrType;
            this.attrValues = attrValues;
        }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:Attribute.cs


示例6: KeySpecificInfo

		public KeySpecificInfo(
            DerObjectIdentifier	algorithm,
            Asn1OctetString		counter)
        {
            this.algorithm = algorithm;
            this.counter = counter;
        }
开发者ID:woutersmit,项目名称:NBitcoin,代码行数:7,代码来源:KeySpecificInfo.cs


示例7: AttributeTypeAndValue

 public AttributeTypeAndValue(
     DerObjectIdentifier type,
     Asn1Encodable value)
 {
     this.type = type;
     this.value = value;
 }
开发者ID:ktw,项目名称:OutlookPrivacyPlugin,代码行数:7,代码来源:AttributeTypeAndValue.cs


示例8: QCStatement

 public QCStatement(
     DerObjectIdentifier qcStatementId,
     Asn1Encodable       qcStatementInfo)
 {
     this.qcStatementId = qcStatementId;
     this.qcStatementInfo = qcStatementInfo;
 }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:QCStatement.cs


示例9: OtherRecipientInfo

 public OtherRecipientInfo(
     DerObjectIdentifier	oriType,
     Asn1Encodable		oriValue)
 {
     this.oriType = oriType;
     this.oriValue = oriValue;
 }
开发者ID:bitcoinkit,项目名称:BitcoinKit-CSharp,代码行数:7,代码来源:OtherRecipientInfo.cs


示例10: GetConvertedValue

        /**
         * Apply default conversion for the given value depending on the oid
         * and the character range of the value.
         *
         * @param oid the object identifier for the DN entry
         * @param value the value associated with it
         * @return the ASN.1 equivalent for the string value.
         */
        public override Asn1Object GetConvertedValue(
            DerObjectIdentifier	oid,
            string				value)
        {
            if (value.Length != 0 && value[0] == '#')
            {
                try
                {
                    return ConvertHexEncoded(value, 1);
                }
                catch (IOException)
                {
                    throw new Exception("can't recode value for oid " + oid.Id);
                }
            }

            if (oid.Equals(X509Name.EmailAddress) || oid.Equals(X509Name.DC))
            {
                return new DerIA5String(value);
            }

            if (oid.Equals(X509Name.DateOfBirth)) // accept time string as well as # (for compatibility)
            {
                return new DerGeneralizedTime(value);
            }

            if (oid.Equals(X509Name.C)
                || oid.Equals(X509Name.SerialNumber)
                || oid.Equals(X509Name.DnQualifier))
            {
                return new DerPrintableString(value);
            }

            return new DerUtf8String(value);
        }
开发者ID:hjgode,项目名称:iTextSharpCF,代码行数:43,代码来源:X509DefaultEntryConverter.cs


示例11: SigPolicyQualifierInfo

		public SigPolicyQualifierInfo(
			DerObjectIdentifier	sigPolicyQualifierId,
			Asn1Encodable		sigQualifier)
		{
			this.sigPolicyQualifierId = sigPolicyQualifierId;
			this.sigQualifier = sigQualifier.ToAsn1Object();
		}
开发者ID:ktw,项目名称:OutlookPrivacyPlugin,代码行数:7,代码来源:SigPolicyQualifierInfo.cs


示例12: ContentInfo

 public ContentInfo(
     DerObjectIdentifier	contentType,
     Asn1Encodable		content)
 {
     this.contentType = contentType;
     this.content = content;
 }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:ContentInfo.cs


示例13: AlgorithmIdentifier

 public AlgorithmIdentifier(
     DerObjectIdentifier algorithm,
     Asn1Encodable		parameters)
 {
     this.algorithm = algorithm;
     this.parameters = parameters;
 }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:AlgorithmIdentifier.cs


示例14: OtherKeyAttribute

		public OtherKeyAttribute(
            DerObjectIdentifier	keyAttrId,
            Asn1Encodable		keyAttr)
        {
            this.keyAttrId = keyAttrId;
            this.keyAttr = keyAttr;
        }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:OtherKeyAttribute.cs


示例15: GetByOid

        /**
        * return the X9ECParameters object for the named curve represented by
        * the passed in object identifier. Null if the curve isn't present.
        *
        * @param oid an object identifier representing a named curve, if present.
        */
        public static X9ECParameters GetByOid(
			DerObjectIdentifier oid)
        {
            X9ECParametersHolder holder = (X9ECParametersHolder) curves[oid];

            return holder == null ? null : holder.Parameters;
        }
开发者ID:kylewlacy,项目名称:bouncycastle-pcl,代码行数:13,代码来源:TeleTrusTNamedCurves.cs


示例16: PolicyQualifierInfo

        /**
         * Creates a new <code>PolicyQualifierInfo</code> instance.
         *
         * @param policyQualifierId a <code>PolicyQualifierId</code> value
         * @param qualifier the qualifier, defined by the above field.
         */
        public PolicyQualifierInfo(
			DerObjectIdentifier	policyQualifierId,
			Asn1Encodable		qualifier)
        {
            this.policyQualifierId = policyQualifierId;
            this.qualifier = qualifier;
        }
开发者ID:hjgode,项目名称:iTextSharpCF,代码行数:13,代码来源:PolicyQualifierInfo.cs


示例17: AlgorithmIdentifier

		public AlgorithmIdentifier(
            DerObjectIdentifier	objectID,
            Asn1Encodable		parameters)
        {
            this.objectID = objectID;
            this.parameters = parameters;
        }
开发者ID:pusp,项目名称:o2platform,代码行数:7,代码来源:AlgorithmIdentifier.cs


示例18: OtherRevocationInfoFormat

 public OtherRevocationInfoFormat(
     DerObjectIdentifier otherRevInfoFormat,
     Asn1Encodable otherRevInfo)
 {
     this.otherRevInfoFormat = otherRevInfoFormat;
     this.otherRevInfo = otherRevInfo;
 }
开发者ID:woutersmit,项目名称:NBitcoin,代码行数:7,代码来源:OtherRevocationInfoFormat.cs


示例19: SemanticsInformation

		public SemanticsInformation(
            DerObjectIdentifier semanticsIdentifier,
            GeneralName[] generalNames)
        {
            this.semanticsIdentifier = semanticsIdentifier;
            this.nameRegistrationAuthorities = generalNames;
        }
开发者ID:KimikoMuffin,项目名称:bc-csharp,代码行数:7,代码来源:SemanticsInformation.cs


示例20: PolicyInformation

 public PolicyInformation(
     DerObjectIdentifier	policyIdentifier,
     Asn1Sequence		policyQualifiers)
 {
     this.policyIdentifier = policyIdentifier;
     this.policyQualifiers = policyQualifiers;
 }
开发者ID:bitcoinkit,项目名称:BitcoinKit-CSharp,代码行数:7,代码来源:PolicyInformation.cs



注:本文中的DerObjectIdentifier类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Derived类代码示例发布时间:2022-05-24
下一篇:
C# DerInteger类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap