crypto/src/main/java/org/springframework/security/crypto/encrypt/CipherUtils.java
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 .