// Token: 0x060008BF RID: 2239 RVA: 0x0001EBF1 File Offset: 0x0001CDF1
 protected ClientAccessArrayIdParameter(string identity) : base(identity)
 {
     if (base.InternalADObjectId != null)
     {
         return;
     }
     this.fqdn = ServerIdParameter.Parse(identity).Fqdn;
 }
Ejemplo n.º 2
0
 // Token: 0x06000A2A RID: 2602 RVA: 0x00021D10 File Offset: 0x0001FF10
 protected virtual void Initialize(string identity)
 {
     if (base.InternalADObjectId != null && base.InternalADObjectId.Rdn != null)
     {
         return;
     }
     string[] array = identity.Split(new char[]
     {
         '\\'
     });
     if (array.Length > 2)
     {
         throw new ArgumentException(Strings.ErrorInvalidIdentity(identity), "Identity");
     }
     if (array.Length == 2)
     {
         this.serverName = array[0];
         this.CommonName = array[1];
     }
     else if (array.Length == 1)
     {
         this.serverName = ServerBasedIdParameter.LocalServerFQDN;
         this.CommonName = array[0];
     }
     if (string.IsNullOrEmpty(this.serverName) || string.IsNullOrEmpty(this.CommonName))
     {
         throw new ArgumentException(Strings.ErrorInvalidIdentity(identity), "Identity");
     }
     try
     {
         this.serverId = ServerIdParameter.Parse(this.serverName);
     }
     catch (ArgumentException)
     {
     }
 }
Ejemplo n.º 3
0
 // Token: 0x060009B7 RID: 2487 RVA: 0x000210B4 File Offset: 0x0001F2B4
 public ExchangeCertificateIdParameter(string id)
 {
     if (id == null)
     {
         throw new ArgumentNullException("identity");
     }
     if (id.Length == 0)
     {
         throw new ArgumentException(Strings.ErrorEmptyParameter(base.GetType().ToString()), "identity");
     }
     if (!id.Contains("\\"))
     {
         this.Thumbprint = id;
         return;
     }
     this.Thumbprint = id.Remove(0, id.Split(new char[]
     {
         '\\'
     })[0].Length + 1);
     this.ServerIdParameter = ServerIdParameter.Parse(id.Split(new char[]
     {
         '\\'
     })[0]);
 }