/// <summary> /// Returns a {@code CertPathBuilder} object that implements the /// specified algorithm. /// /// <para> A new CertPathBuilder object encapsulating the /// CertPathBuilderSpi implementation from the specified Provider /// object is returned. Note that the specified Provider object /// does not have to be registered in the provider list. /// /// </para> /// </summary> /// <param name="algorithm"> the name of the requested {@code CertPathBuilder} /// algorithm. See the CertPathBuilder section in the <a href= /// "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathBuilder"> /// Java Cryptography Architecture Standard Algorithm Name Documentation</a> /// for information about standard algorithm names. /// </param> /// <param name="provider"> the provider. /// </param> /// <returns> a {@code CertPathBuilder} object that implements the /// specified algorithm. /// </returns> /// <exception cref="NoSuchAlgorithmException"> if a CertPathBuilderSpi /// implementation for the specified algorithm is not available /// from the specified Provider object. /// </exception> /// <exception cref="IllegalArgumentException"> if the {@code provider} is /// null. /// </exception> /// <seealso cref= java.security.Provider </seealso> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public static CertPathBuilder getInstance(String algorithm, java.security.Provider provider) throws java.security.NoSuchAlgorithmException public static CertPathBuilder GetInstance(String algorithm, Provider provider) { Instance instance = GetInstance.getInstance("CertPathBuilder", typeof(CertPathBuilderSpi), algorithm, provider); return(new CertPathBuilder((CertPathBuilderSpi)instance.impl, instance.provider, algorithm)); }
/// <summary> /// Returns a {@code CertPathValidator} object that implements the /// specified algorithm. /// /// <para> A new CertPathValidator object encapsulating the /// CertPathValidatorSpi implementation from the specified provider /// is returned. The specified provider must be registered /// in the security provider list. /// /// </para> /// <para> Note that the list of registered providers may be retrieved via /// the <seealso cref="Security#getProviders() Security.getProviders()"/> method. /// /// </para> /// </summary> /// <param name="algorithm"> the name of the requested {@code CertPathValidator} /// algorithm. See the CertPathValidator section in the <a href= /// "{@docRoot}/../technotes/guides/security/StandardNames.html#CertPathValidator"> /// Java Cryptography Architecture Standard Algorithm Name Documentation</a> /// for information about standard algorithm names. /// </param> /// <param name="provider"> the name of the provider. /// </param> /// <returns> a {@code CertPathValidator} object that implements the /// specified algorithm. /// </returns> /// <exception cref="NoSuchAlgorithmException"> if a CertPathValidatorSpi /// implementation for the specified algorithm is not /// available from the specified provider. /// </exception> /// <exception cref="NoSuchProviderException"> if the specified provider is not /// registered in the security provider list. /// </exception> /// <exception cref="IllegalArgumentException"> if the {@code provider} is /// null or empty. /// </exception> /// <seealso cref= java.security.Provider </seealso> //JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in .NET: //ORIGINAL LINE: public static CertPathValidator getInstance(String algorithm, String provider) throws java.security.NoSuchAlgorithmException, java.security.NoSuchProviderException public static CertPathValidator GetInstance(String algorithm, String provider) { Instance instance = GetInstance.getInstance("CertPathValidator", typeof(CertPathValidatorSpi), algorithm, provider); return(new CertPathValidator((CertPathValidatorSpi)instance.impl, instance.provider, algorithm)); }