/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm. * * @param algorithm * the name of the requested trust management algorithm. * @return a trust manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new TrustManagerFactory((TrustManagerFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code TrustManagerFactory} instance for the specified * trust management algorithm from the specified provider. * * @param algorithm * the name of the requested key management algorithm name. * @param provider * the provider that provides the requested algorithm. * @return a key manager factory for the requested algorithm. * @throws NoSuchAlgorithmException * if the specified provider cannot provide the requested * algorithm. * @throws NullPointerException * if {@code algorithm} is {@code null} (instead of * NoSuchAlgorithmException as in 1.4 release) */ public static final TrustManagerFactory getInstance(String algorithm, Provider provider) throws NoSuchAlgorithmException { if (provider == null) { throw new IllegalArgumentException("Provider is null"); } if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Object spi = ENGINE.getInstance(algorithm, provider, null); return new TrustManagerFactory((TrustManagerFactorySpi) spi, provider, algorithm); }