1. /*
  2. * @(#)InvalidKeyException.java 1.13 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package java.security;
  8. /**
  9. * This is the exception for invalid Keys (invalid encoding, wrong
  10. * length, uninitialized, etc).
  11. *
  12. * @version 1.13, 01/23/03
  13. * @author Benjamin Renaud
  14. */
  15. public class InvalidKeyException extends KeyException {
  16. /**
  17. * Constructs an InvalidKeyException with no detail message. A
  18. * detail message is a String that describes this particular
  19. * exception.
  20. */
  21. public InvalidKeyException() {
  22. super();
  23. }
  24. /**
  25. * Constructs an InvalidKeyException with the specified detail
  26. * message. A detail message is a String that describes this
  27. * particular exception.
  28. *
  29. * @param msg the detail message.
  30. */
  31. public InvalidKeyException(String msg) {
  32. super(msg);
  33. }
  34. }