void implInit(int opmode, Key key, SecureRandom random, CipherSpi cipherImpl) throws InvalidKeyException { try { implInit(opmode, key, (AlgorithmParameterSpec) null, random, cipherImpl); } catch (InvalidAlgorithmParameterException iape) { throw new InvalidKeyException("requires PBE parameters"); } }
void implInit( int opmode, Key key, AlgorithmParameters params, SecureRandom random, CipherSpi cipherImpl) throws InvalidKeyException, InvalidAlgorithmParameterException { AlgorithmParameterSpec paramSpec = null; if (params != null) { try { paramSpec = params.getParameterSpec(PBEParameterSpec.class); } catch (InvalidParameterSpecException ipse) { throw new InvalidAlgorithmParameterException("requires PBE parameters"); } } implInit(opmode, key, paramSpec, random, cipherImpl); }
protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException { core.implInit(opmode, key, random, cipher); }
protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { core.implInit(opmode, key, params, random, cipher); }
void implInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException { implInit(opmode, key, random, null); }
void implInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException { implInit(opmode, key, params, random, null); }