Esempio n. 1
0
        /// <summary>
        /// Returns a {@code Collection} of {@code Certificate}s that
        /// match the specified selector. If no {@code Certificate}s
        /// match the selector, an empty {@code Collection} will be returned.
        /// <para>
        /// For some {@code CertStore} types, the resulting
        /// {@code Collection} may not contain <b>all</b> of the
        /// {@code Certificate}s that match the selector. For instance,
        /// an LDAP {@code CertStore} may not search all entries in the
        /// directory. Instead, it may just search entries that are likely to
        /// contain the {@code Certificate}s it is looking for.
        /// </para>
        /// <para>
        /// Some {@code CertStore} implementations (especially LDAP
        /// {@code CertStore}s) may throw a {@code CertStoreException}
        /// unless a non-null {@code CertSelector} is provided that
        /// includes specific criteria that can be used to find the certificates.
        /// Issuer and/or subject names are especially useful criteria.
        ///
        /// </para>
        /// </summary>
        /// <param name="selector"> A {@code CertSelector} used to select which
        ///  {@code Certificate}s should be returned. Specify {@code null}
        ///  to return all {@code Certificate}s (if supported). </param>
        /// <returns> A {@code Collection} of {@code Certificate}s that
        ///         match the specified selector (never {@code null}) </returns>
        /// <exception cref="CertStoreException"> if an exception occurs </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public final java.util.Collection<? extends Certificate> getCertificates(CertSelector selector) throws CertStoreException
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public final java.util.Collection<? extends Certificate> getCertificates(CertSelector selector) throws CertStoreException
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
        public ICollection <?> GetCertificates(CertSelector selector) where ? : Certificate
Esempio n. 2
0
        /// <summary>
        /// Creates an instance of {@code PKIXBuilderParameters} with
        /// the specified {@code Set} of most-trusted CAs.
        /// Each element of the set is a <seealso cref="TrustAnchor TrustAnchor"/>.
        ///
        /// <para>Note that the {@code Set} is copied to protect against
        /// subsequent modifications.
        ///
        /// </para>
        /// </summary>
        /// <param name="trustAnchors"> a {@code Set} of {@code TrustAnchor}s </param>
        /// <param name="targetConstraints"> a {@code CertSelector} specifying the
        /// constraints on the target certificate </param>
        /// <exception cref="InvalidAlgorithmParameterException"> if {@code trustAnchors}
        /// is empty {@code (trustAnchors.isEmpty() == true)} </exception>
        /// <exception cref="NullPointerException"> if {@code trustAnchors} is
        /// {@code null} </exception>
        /// <exception cref="ClassCastException"> if any of the elements of
        /// {@code trustAnchors} are not of type
        /// {@code java.security.cert.TrustAnchor} </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public PKIXBuilderParameters(java.util.Set<TrustAnchor> trustAnchors, CertSelector targetConstraints) throws java.security.InvalidAlgorithmParameterException
        public PKIXBuilderParameters(Set <TrustAnchor> trustAnchors, CertSelector targetConstraints) : base(trustAnchors)
        {
            TargetCertConstraints = targetConstraints;
        }
Esempio n. 3
0
        /// <summary>
        /// Creates an instance of {@code PKIXBuilderParameters} that
        /// populates the set of most-trusted CAs from the trusted
        /// certificate entries contained in the specified {@code KeyStore}.
        /// Only keystore entries that contain trusted {@code X509Certificate}s
        /// are considered; all other certificate types are ignored.
        /// </summary>
        /// <param name="keystore"> a {@code KeyStore} from which the set of
        /// most-trusted CAs will be populated </param>
        /// <param name="targetConstraints"> a {@code CertSelector} specifying the
        /// constraints on the target certificate </param>
        /// <exception cref="KeyStoreException"> if {@code keystore} has not been
        /// initialized </exception>
        /// <exception cref="InvalidAlgorithmParameterException"> if {@code keystore} does
        /// not contain at least one trusted certificate entry </exception>
        /// <exception cref="NullPointerException"> if {@code keystore} is
        /// {@code null} </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public PKIXBuilderParameters(java.security.KeyStore keystore, CertSelector targetConstraints) throws java.security.KeyStoreException, java.security.InvalidAlgorithmParameterException
        public PKIXBuilderParameters(KeyStore keystore, CertSelector targetConstraints) : base(keystore)
        {
            TargetCertConstraints = targetConstraints;
        }
Esempio n. 4
0
        /// <summary>
        /// Returns a {@code Collection} of {@code Certificate}s that
        /// match the specified selector. If no {@code Certificate}s
        /// match the selector, an empty {@code Collection} will be returned.
        /// <para>
        /// For some {@code CertStore} types, the resulting
        /// {@code Collection} may not contain <b>all</b> of the
        /// {@code Certificate}s that match the selector. For instance,
        /// an LDAP {@code CertStore} may not search all entries in the
        /// directory. Instead, it may just search entries that are likely to
        /// contain the {@code Certificate}s it is looking for.
        /// </para>
        /// <para>
        /// Some {@code CertStore} implementations (especially LDAP
        /// {@code CertStore}s) may throw a {@code CertStoreException}
        /// unless a non-null {@code CertSelector} is provided that includes
        /// specific criteria that can be used to find the certificates. Issuer
        /// and/or subject names are especially useful criteria.
        ///
        /// </para>
        /// </summary>
        /// <param name="selector"> A {@code CertSelector} used to select which
        ///  {@code Certificate}s should be returned. Specify {@code null}
        ///  to return all {@code Certificate}s (if supported). </param>
        /// <returns> A {@code Collection} of {@code Certificate}s that
        ///         match the specified selector (never {@code null}) </returns>
        /// <exception cref="CertStoreException"> if an exception occurs </exception>
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public abstract java.util.Collection<? extends Certificate> engineGetCertificates(CertSelector selector) throws CertStoreException;
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET:
//ORIGINAL LINE: public abstract java.util.Collection<? extends Certificate> engineGetCertificates(CertSelector selector) throws CertStoreException;
//JAVA TO C# CONVERTER TODO TASK: Java wildcard generics are not converted to .NET:
        public abstract ICollection <?> EngineGetCertificates(CertSelector selector) where ? : Certificate;