1. /*
  2. * @(#)KeySpec.java 1.14 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.security.spec;
  11. /**
  12. * A (transparent) specification of the key material
  13. * that constitutes a cryptographic key.
  14. *
  15. * <p>If the key is stored on a hardware device, its
  16. * specification may contain information that helps identify the key on the
  17. * device.
  18. *
  19. * <P> A key may be specified in an algorithm-specific way, or in an
  20. * algorithm-independent encoding format (such as ASN.1).
  21. * For example, a DSA private key may be specified by its components
  22. * <code>x</code>, <code>p</code>, <code>q</code>, and <code>g</code>
  23. * (see {@link DSAPrivateKeySpec}), or it may be
  24. * specified using its DER encoding
  25. * (see {@link PKCS8EncodedKeySpec}).
  26. *
  27. * <P> This interface contains no methods or constants. Its only purpose
  28. * is to group (and provide type safety for) all key specifications.
  29. * All key specifications must implement this interface.
  30. *
  31. * @author Jan Luehe
  32. *
  33. * @version 1.14, 02/02/00
  34. *
  35. * @see java.security.Key
  36. * @see java.security.KeyFactory
  37. * @see EncodedKeySpec
  38. * @see X509EncodedKeySpec
  39. * @see PKCS8EncodedKeySpec
  40. * @see DSAPrivateKeySpec
  41. * @see DSAPublicKeySpec
  42. *
  43. * @since 1.2
  44. */
  45. public interface KeySpec { }