1. /*
  2. * @(#)InvalidKeySpecException.java 1.8 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.security.spec;
  8. import java.security.GeneralSecurityException;
  9. /**
  10. * This is the exception for invalid key specifications.
  11. *
  12. * @author Jan Luehe
  13. *
  14. * @version 1.8, 11/29/01
  15. *
  16. * @see KeySpec
  17. *
  18. * @since JDK1.2
  19. */
  20. public class InvalidKeySpecException extends GeneralSecurityException {
  21. /**
  22. * Constructs an InvalidKeySpecException with no detail message. A
  23. * detail message is a String that describes this particular
  24. * exception.
  25. */
  26. public InvalidKeySpecException() {
  27. super();
  28. }
  29. /**
  30. * Constructs an InvalidKeySpecException with the specified detail
  31. * message. A detail message is a String that describes this
  32. * particular exception.
  33. *
  34. * @param msg the detail message.
  35. */
  36. public InvalidKeySpecException(String msg) {
  37. super(msg);
  38. }
  39. }