public static <T extends AlgorithmParameterSpec> T getParameterSpec(Cipher cipher,
			Class<T> parameterSpecClass) {
		try {
			return cipher.getParameters().getParameterSpec(parameterSpecClass);
		}
		catch (InvalidParameterSpecException e) {
			throw new IllegalArgumentException("Unable to access parameter", e);
		}
	}
public static <T extends AlgorithmParameterSpec> T getParameterSpec(Cipher cipher,
			Class<T> parameterSpecClass) {
		try {
			return cipher.getParameters().getParameterSpec(parameterSpecClass);
		}
		catch (InvalidParameterSpecException e) {
			throw new IllegalArgumentException("Unable to access parameter", e);
		}
	}
public static < T extends AlgorithmParameterSpec > T getParameterSpec ( Cipher cipher , Class < T > parameterSpecClass ) { try { return cipher . getParameters ( ) . getParameterSpec ( parameterSpecClass ) ; } catch ( InvalidParameterSpecException e ) { throw new IllegalArgumentException ( "Unable to access parameter" , e ) ; } }
Initializes the Cipher for use.
Initializes the Cipher for use .