/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance with the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a builder for the requested algorithm. * @throws NullPointerException * if the algorithm is {@code null}. * @throws NoSuchAlgorithmException * if no installed provider can provide the algorithm. */ public static CertPathBuilder getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathBuilder((CertPathBuilderSpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }
/** * Creates a new {@code CertPathBuilder} instance from the specified * provider providing the specified algorithm. * * @param algorithm * the name of the algorithm. * @param provider * the provider. * @return a builder for the requested algorithm * @throws NoSuchAlgorithmException * if the specified provider cannot provide the algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathBuilder getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("provider == null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new CertPathBuilder((CertPathBuilderSpi) spi, provider, algorithm); }