/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm. * * @param algorithm * the name of the key algorithm. * @return a secret key factory for the specified key algorithm. * @throws NoSuchAlgorithmException * if no installed provider can provide the requested algorithm. * @throws NullPointerException * if the specified algorithm is {@code null}. */ public static final SecretKeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException { if (algorithm == null) { throw new NullPointerException("algorithm == null"); } Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); return new SecretKeyFactory((SecretKeyFactorySpi) sap.spi, sap.provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }
/** * Creates a new {@code SecretKeyFactory} instance for the specified key * algorithm from the specified provider. * * @param algorithm * the name of the key algorithm. * @param provider * the provider that provides the requested algorithm. * @return a secret key factory for the specified key algorithm from the * specified provider. * @throws NoSuchAlgorithmException * if the specified provider cannot provider the requested * algorithm. * @throws IllegalArgumentException * if the specified provider is {@code null}. * @throws NullPointerException * is the specified algorithm name is {@code null}. */ public static final SecretKeyFactory 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 SecretKeyFactory((SecretKeyFactorySpi) spi, provider, algorithm); }