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