/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * * @param algorithm * the name of the algorithm. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm. * @throws NoSuchAlgorithmException * if no provider provides the requested algorithm. */ public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new KeyFactory((KeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }
/** * Returns a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * * @param algorithm * the name of the algorithm. * @param provider * the security provider. * @return a new instance of {@code KeyFactory} that utilizes the specified * algorithm from the specified provider. * @throws NoSuchAlgorithmException * if the provider does not provide the requested algorithm. * @throws IllegalArgumentException if {@code provider == null} */ public static KeyFactory 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 KeyFactory((KeyFactorySpi) spi, provider, algorithm); }