Esempio n. 1
0
 public virtual IX509Selector GetTargetConstraints()
 {
     if (selector != null)
     {
         return((IX509Selector)selector.Clone());
     }
     return(null);
 }
Esempio n. 2
0
 public virtual X509CertStoreSelector GetTargetCertConstraints()
 {
     if (certSelector == null)
     {
         return(null);
     }
     return((X509CertStoreSelector)certSelector.Clone());
 }
Esempio n. 3
0
 public virtual void SetTargetConstraints(IX509Selector selector)
 {
     if (selector != null)
     {
         this.selector = (IX509Selector)selector.Clone();
         return;
     }
     this.selector = null;
 }
Esempio n. 4
0
 public virtual void SetTargetCertConstraints(IX509Selector selector)
 {
     if (selector == null)
     {
         certSelector = null;
     }
     else
     {
         certSelector = (IX509Selector)selector.Clone();
     }
 }
Esempio n. 5
0
		/**
		* Sets the required constraints on the target certificate or attribute
		* certificate. The constraints are specified as an instance of
		* <code>IX509Selector</code>. If <code>null</code>, no constraints are
		* defined.
		* <p>
		* The target certificate in a PKIX path may be a certificate or an
		* attribute certificate.
		* </p><p>
		* Note that the <code>IX509Selector</code> specified is cloned to protect
		* against subsequent modifications.
		* </p>
		*
		* @param selector a <code>IX509Selector</code> specifying the constraints on
		*            the target certificate or attribute certificate (or
		*            <code>null</code>)
		* @see #getTargetConstraints
		* @see X509CertStoreSelector
		* @see X509AttributeCertStoreSelector
		*/
		public virtual void SetTargetConstraints(IX509Selector selector)
		{
			if (selector != null)
			{
				this.selector = (IX509Selector) selector.Clone();
			}
			else
			{
				this.selector = null;
			}
		}
Esempio n. 6
0
		/**
		 * Sets the required constraints on the target certificate. The constraints
		 * are specified as an instance of CertSelector. If null, no constraints are
		 * defined.<br />
		 * <br />
		 * Note that the CertSelector specified is cloned to protect against
		 * subsequent modifications.
		 *
		 * @param selector
		 *            a CertSelector specifying the constraints on the target
		 *            certificate (or <code>null</code>)
		 *
		 * @see #getTargetCertConstraints()
		 */
		public virtual void SetTargetCertConstraints(
			IX509Selector selector)
		{
			if (selector == null)
			{
				certSelector = null;
			}
			else
			{
				certSelector = (IX509Selector)selector.Clone();
			}
		}