Inheritance: Novell.Directory.Ldap.Asn1.Asn1OctetString
コード例 #1
0
ファイル: RfcExtendedRequest.cs プロジェクト: nickchal/pash
		/// <summary> Constructs an extended request.
		/// 
		/// </summary>
		/// <param name="requestName">The OID for this extended operation.
		/// </param>
		/// <param name="requestValue">An optional request value.
		/// </param>
		public RfcExtendedRequest(RfcLdapOID requestName, Asn1OctetString requestValue):base(2)
		{
			add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_NAME), requestName, false));
			if (requestValue != null)
				add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_VALUE), requestValue, false));
			return ;
		}
コード例 #2
0
 /// <summary>
 ///     Constructs an extended request.
 /// </summary>
 /// <param name="requestName">
 ///     The OID for this extended operation.
 /// </param>
 /// <param name="requestValue">
 ///     An optional request value.
 /// </param>
 public RfcExtendedRequest(RfcLdapOID requestName, Asn1OctetString requestValue) : base(2)
 {
     add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_NAME), requestName, false));
     if (requestValue != null)
     {
         add(new Asn1Tagged(new Asn1Identifier(Asn1Identifier.CONTEXT, false, REQUEST_VALUE), requestValue, false));
     }
 }
コード例 #3
0
ファイル: RfcControl.cs プロジェクト: EventStore/csharp-ldap
 /// <summary> 
 /// Note: criticality is only added if true, as per RFC 2251 sec 5.1 part
 /// (4): If a value of a type is its default value, it MUST be
 /// absent.
 /// </summary>
 public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality, Asn1OctetString controlValue)
     : base(3)
 {
     add(controlType);
     if (criticality.booleanValue() == true)
         add(criticality);
     if (controlValue != null)
         add(controlValue);
 }
コード例 #4
0
 /// <summary>
 /// Note: criticality is only added if true, as per RFC 2251 sec 5.1 part
 /// (4): If a value of a type is its default value, it MUST be
 /// absent.
 /// </summary>
 public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality, Asn1OctetString controlValue) : base(3)
 {
     add(controlType);
     if (criticality.booleanValue() == true)
     {
         add(criticality);
     }
     if (controlValue != null)
     {
         add(controlValue);
     }
 }
コード例 #5
0
        //*************************************************************************
        // Constructors for ExtendedRequest
        //*************************************************************************

        /// <summary> Constructs an extended request.
        ///
        /// </summary>
        /// <param name="requestName">The OID for this extended operation.
        /// </param>
        public RfcExtendedRequest(RfcLdapOID requestName)
            : this(requestName, null)
        {
        }
コード例 #6
0
 /// <summary> </summary>
 public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality)
     : this(controlType, criticality, null)
 {
 }
コード例 #7
0
        //*************************************************************************
        // Constructors for Control
        //*************************************************************************

        /// <summary> </summary>
        public RfcControl(RfcLdapOID controlType)
            : this(controlType, new Asn1Boolean(false), null)
        {
        }
コード例 #8
0
 //*************************************************************************
 // Constructors for ExtendedRequest
 //*************************************************************************
 /// <summary> Constructs an extended request.
 /// 
 /// </summary>
 /// <param name="requestName">The OID for this extended operation.
 /// </param>
 public RfcExtendedRequest(RfcLdapOID requestName)
     : this(requestName, null)
 {
     return ;
 }
コード例 #9
0
ファイル: RfcControl.cs プロジェクト: nickchal/pash
		/// <summary> </summary>
		public RfcControl(RfcLdapOID controlType, Asn1Boolean criticality):this(controlType, criticality, null)
		{
		}
コード例 #10
0
ファイル: RfcControl.cs プロジェクト: nickchal/pash
		//*************************************************************************
		// Constructors for Control
		//*************************************************************************
		
		/// <summary> </summary>
		public RfcControl(RfcLdapOID controlType):this(controlType, new Asn1Boolean(false), null)
		{
		}