當前位置: 首頁>>代碼示例>>C#>>正文


C# Asn1.DerObjectIdentifier類代碼示例

本文整理匯總了C#中Raksha.Asn1.DerObjectIdentifier的典型用法代碼示例。如果您正苦於以下問題:C# DerObjectIdentifier類的具體用法?C# DerObjectIdentifier怎麽用?C# DerObjectIdentifier使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DerObjectIdentifier類屬於Raksha.Asn1命名空間,在下文中一共展示了DerObjectIdentifier類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: OtherRecipientInfo

		public OtherRecipientInfo(
            DerObjectIdentifier	oriType,
            Asn1Encodable		oriValue)
        {
            this.oriType = oriType;
            this.oriValue = oriValue;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:OtherRecipientInfo.cs

示例2: ECKeyGenerationParameters

		public ECKeyGenerationParameters(
			DerObjectIdentifier	publicKeyParamSet,
			SecureRandom		random)
			: this(ECKeyParameters.LookupParameters(publicKeyParamSet), random)
		{
			this.publicKeyParamSet = publicKeyParamSet;
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:ECKeyGenerationParameters.cs

示例3: DHKdfParameters

		public DHKdfParameters(
			DerObjectIdentifier	algorithm,
			int					keySize,
			byte[]				z)
			: this(algorithm, keySize, z, null)
		{
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:DHKdfParameters.cs

示例4: Attribute

		public Attribute(
            DerObjectIdentifier attrType,
            Asn1Set             attrValues)
        {
            this.attrType = attrType;
            this.attrValues = attrValues;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:Attribute.cs

示例5: OtherKeyAttribute

		public OtherKeyAttribute(
            DerObjectIdentifier	keyAttrId,
            Asn1Encodable		keyAttr)
        {
            this.keyAttrId = keyAttrId;
            this.keyAttr = keyAttr;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:OtherKeyAttribute.cs

示例6: SemanticsInformation

		public SemanticsInformation(
			Asn1Sequence seq)
        {
            if (seq.Count < 1)
            {
                throw new ArgumentException("no objects in SemanticsInformation");
            }

			IEnumerator e = seq.GetEnumerator();
			e.MoveNext();
            object obj = e.Current;
            if (obj is DerObjectIdentifier)
            {
                semanticsIdentifier = DerObjectIdentifier.GetInstance(obj);
                if (e.MoveNext())
                {
                    obj  = e.Current;
                }
                else
                {
                    obj  = null;
                }
            }

			if (obj  != null)
            {
                Asn1Sequence generalNameSeq = Asn1Sequence.GetInstance(obj );
                nameRegistrationAuthorities = new GeneralName[generalNameSeq.Count];
                for (int i= 0; i < generalNameSeq.Count; i++)
                {
                    nameRegistrationAuthorities[i] = GeneralName.GetInstance(generalNameSeq[i]);
                }
            }
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:34,代碼來源:SemanticsInformation.cs

示例7: Gost3410KeyGenerationParameters

		public Gost3410KeyGenerationParameters(
			SecureRandom		random,
			DerObjectIdentifier	publicKeyParamSet)
			: this(random, LookupParameters(publicKeyParamSet))
		{
			this.publicKeyParamSet = publicKeyParamSet;
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:GOST3410KeyGenerationParameters.cs

示例8: GetCapabilitiesForOid

        /**
         * returns an ArrayList with 0 or more objects of all the capabilities
         * matching the passed in capability Oid. If the Oid passed is null the
         * entire set is returned.
         */
        public IList GetCapabilitiesForOid(
            DerObjectIdentifier capability)
        {
            IList list = Platform.CreateArrayList();
            DoGetCapabilitiesForOid(capability, list);
			return list;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:12,代碼來源:SMIMECapabilities.cs

示例9: Generate

		public TimeStampRequest Generate(
			string		digestAlgorithmOid,
			byte[]		digest,
			BigInteger	nonce)
		{
			if (digestAlgorithmOid == null)
			{
				throw new ArgumentException("No digest algorithm specified");
			}

			DerObjectIdentifier digestAlgOid = new DerObjectIdentifier(digestAlgorithmOid);

			AlgorithmIdentifier algID = new AlgorithmIdentifier(digestAlgOid, DerNull.Instance);
			MessageImprint messageImprint = new MessageImprint(algID, digest);

			X509Extensions  ext = null;

			if (extOrdering.Count != 0)
			{
				ext = new X509Extensions(extOrdering, extensions);
			}

			DerInteger derNonce = nonce == null
				?	null
				:	new DerInteger(nonce);

			return new TimeStampRequest(
				new TimeStampReq(messageImprint, reqPolicy, derNonce, certReq, ext));
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:29,代碼來源:TimeStampRequestGenerator.cs

示例10: ContentInfo

		public ContentInfo(
			DerObjectIdentifier	contentType,
			Asn1Encodable		content)
		{
			this.contentType = contentType;
			this.content = content;
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:ContentInfo.cs

示例11: QCStatement

 public QCStatement(
     DerObjectIdentifier qcStatementId,
     Asn1Encodable       qcStatementInfo)
 {
     this.qcStatementId = qcStatementId;
     this.qcStatementInfo = qcStatementInfo;
 }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:7,代碼來源:QCStatement.cs

示例12: Gost3410KeyParameters

		protected Gost3410KeyParameters(
			bool				isPrivate,
			DerObjectIdentifier	publicKeyParamSet)
			: base(isPrivate)
		{
			this.parameters = LookupParameters(publicKeyParamSet);
			this.publicKeyParamSet = publicKeyParamSet;
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:8,代碼來源:GOST3410KeyParameters.cs

示例13: DHPrivateKeyParameters

		public DHPrivateKeyParameters(
            BigInteger			x,
            DHParameters		parameters,
		    DerObjectIdentifier	algorithmOid)
			: base(true, parameters, algorithmOid)
        {
            this.x = x;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:8,代碼來源:DHPrivateKeyParameters.cs

示例14: SafeBag

		public SafeBag(
            DerObjectIdentifier	oid,
            Asn1Object			obj)
        {
            this.bagID = oid;
            this.bagValue = obj;
            this.bagAttributes = null;
        }
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:8,代碼來源:SafeBag.cs

示例15: AddExtension

		/**
		* add a given extension field for the standard extensions tag
		* The value parameter becomes the contents of the octet string associated
		* with the extension.
		*/
		public void AddExtension(
			string	oid,
			bool	critical,
			byte[]	value)
		{
			DerObjectIdentifier derOid = new DerObjectIdentifier(oid);
			extensions[derOid] = new X509Extension(critical, new DerOctetString(value));
			extOrdering.Add(derOid);
		}
開發者ID:Xanagandr,項目名稱:DisaOpenSource,代碼行數:14,代碼來源:TimeStampRequestGenerator.cs


注:本文中的Raksha.Asn1.DerObjectIdentifier類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。