Java tutorial
//package com.java2s; import java.security.InvalidKeyException; import javax.crypto.Cipher; public class Main { @Deprecated public static Cipher createCipher(int mode, String key) throws InvalidKeyException { throw new InvalidKeyException("This method is deprecated"); } }