/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm. * * @param algorithm * the algorithm name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider provides the specified algorithm. * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new CertPathValidator((CertPathValidatorSpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }
/** * Returns a new certification path validator for the specified algorithm * from the specified provider. * * @param algorithm * the algorithm name. * @param provider * the security provider name. * @return a certification path validator for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws IllegalArgumentException if {@code provider == null} * @throws NullPointerException * if algorithm is {@code null}. */ public static CertPathValidator 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 CertPathValidator((CertPathValidatorSpi) spi, provider, algorithm); }