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


C# Asn1.Asn1Encodable類代碼示例

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


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

示例1: AddExtension

		/**
		 * add a given extension field for the standard extensions tag (tag 3)
		 * @throws IOException
		 */
		public virtual void AddExtension(
			DerObjectIdentifier	oid,
			bool				critical,
			Asn1Encodable 		extValue)
		{
			this.AddExtension(oid, critical, extValue.GetEncoded());
		}
開發者ID:Niladri24dutta,項目名稱:itextsharp,代碼行數:11,代碼來源:TimeStampRequestGenerator.cs

示例2: CommitmentTypeQualifier

 /**
 * Creates a new <code>CommitmentTypeQualifier</code> instance.
 *
 * @param commitmentTypeIdentifier a <code>CommitmentTypeIdentifier</code> value
 * @param qualifier the qualifier, defined by the above field.
 */
 public CommitmentTypeQualifier(
     DerObjectIdentifier commitmentTypeIdentifier,
     Asn1Encodable qualifier)
 {
     this.commitmentTypeIdentifier = commitmentTypeIdentifier;
     this.qualifier = qualifier;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:13,代碼來源:CommitmentTypeQualifier.cs

示例3: OtherKeyAttribute

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

示例4: AddExtension

        /// <summary>
        /// Add an extension to this certificate.
        /// </summary>
        /// <param name="oid">Its Object Identifier.</param>
        /// <param name="critical">Is it critical.</param>
        /// <param name="extensionValue">The value.</param>
        public void AddExtension(
			DerObjectIdentifier	oid,
			bool				critical,
			Asn1Encodable		extensionValue)
        {
            extGenerator.AddExtension(oid, critical, extensionValue);
        }
開發者ID:sanyaade-iot,項目名稱:Schmoose-BouncyCastle,代碼行數:13,代碼來源:X509V3CertificateGenerator.cs

示例5: ContentInfo

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

示例6: OtherRecipientInfo

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

示例7: SmimeCapability

 public SmimeCapability(
     DerObjectIdentifier	capabilityID,
     Asn1Encodable		parameters)
 {
     this.capabilityID = capabilityID;
     this.parameters = parameters;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:7,代碼來源:SMIMECapability.cs

示例8: QCStatement

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

示例9: BerTaggedObject

		/**
		 * @param explicitly true if an explicitly tagged object.
		 * @param tagNo the tag number for this object.
		 * @param obj the tagged object.
		 */
		public BerTaggedObject(
			bool			explicitly,
			int				tagNo,
			Asn1Encodable	obj)
			: base(explicitly, tagNo, obj)
		{
		}
開發者ID:MBrekhof,項目名稱:pleiobox-clients,代碼行數:12,代碼來源:BerTaggedObject.cs

示例10: CertStatus

		public CertStatus(
            int				tagNo,
            Asn1Encodable	value)
        {
            this.tagNo = tagNo;
            this.value = value;
        }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:7,代碼來源:CertStatus.cs

示例11: SetSignatureParameters

		internal static void SetSignatureParameters(
			ISigner			signature,
			Asn1Encodable	parameters)
		{
			if (parameters != null && !derNull.Equals(parameters))
			{
				// TODO Put back in
//				AlgorithmParameters sigParams = AlgorithmParameters.GetInstance(signature.getAlgorithm());
//
//				try
//				{
//					sigParams.Init(parameters.ToAsn1Object().GetDerEncoded());
//				}
//				catch (IOException e)
//				{
//					throw new SignatureException("IOException decoding parameters: " + e.Message);
//				}
//
//				if (Platform.EndsWith(signature.getAlgorithm(), "MGF1"))
//				{
//					try
//					{
//						signature.setParameter(sigParams.getParameterSpec(PSSParameterSpec.class));
//					}
//					catch (GeneralSecurityException e)
//					{
//						throw new SignatureException("Exception extracting parameters: " + e.Message);
//					}
//				}
			}
		}
開發者ID:KimikoMuffin,項目名稱:bc-csharp,代碼行數:31,代碼來源:X509SignatureUtil.cs

示例12: Asn1TaggedObject

		/**
         * @param tagNo the tag number for this object.
         * @param obj the tagged object.
         */
        protected Asn1TaggedObject(
            int             tagNo,
            Asn1Encodable   obj)
        {
            this.explicitly = true;
            this.tagNo = tagNo;
            this.obj = obj;
        }
開發者ID:ktw,項目名稱:OutlookPrivacyPlugin,代碼行數:12,代碼來源:Asn1TaggedObject.cs

示例13: DerApplicationSpecific

        public DerApplicationSpecific(
            int				tag,
            Asn1Encodable	obj)
        {
            this.tag = tag | Asn1Tags.Constructed;

            this.octets = obj.GetDerEncoded();
        }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:8,代碼來源:DerApplicationSpecific.cs

示例14: Asn1TaggedObject

 /**
  * @param explicitly true if the object is explicitly tagged.
  * @param tagNo the tag number for this object.
  * @param obj the tagged object.
  */
 protected Asn1TaggedObject(
     bool            explicitly,
     int             tagNo,
     Asn1Encodable   obj)
 {
     this.explicitly = explicitly;
     this.tagNo = tagNo;
     this.obj = obj;
 }
開發者ID:hjgode,項目名稱:iTextSharpCF,代碼行數:14,代碼來源:Asn1TaggedObject.cs

示例15: Asn1OctetString

 internal Asn1OctetString(
     Asn1Encodable obj)
 {
     try
     {
         this.str = obj.GetDerEncoded();
     }
     catch (IOException e)
     {
         throw new ArgumentException("Error processing object : " + e.ToString());
     }
 }
開發者ID:Noyabronok,項目名稱:itextsharpml,代碼行數:12,代碼來源:Asn1OctetString.cs


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