home *** CD-ROM | disk | FTP | other *** search
/ Java 1.2 How-To / JavaHowTo.iso / 3rdParty / jbuilder / unsupported / JDK1.2beta3 / SOURCE / SRC.ZIP / java / security / spec / KeySpec.java < prev    next >
Encoding:
Java Source  |  1998-03-20  |  1.7 KB  |  53 lines

  1. /*
  2.  * @(#)KeySpec.java    1.6 98/03/18
  3.  *
  4.  * Copyright 1997 by Sun Microsystems, Inc.,
  5.  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
  6.  * All rights reserved.
  7.  *
  8.  * This software is the confidential and proprietary information
  9.  * of Sun Microsystems, Inc. ("Confidential Information").  You
  10.  * shall not disclose such Confidential Information and shall use
  11.  * it only in accordance with the terms of the license agreement
  12.  * you entered into with Sun.
  13.  */
  14.  
  15. package java.security.spec;
  16.  
  17. /**
  18.  * A specification of a cryptographic key.
  19.  *
  20.  * <P> Key specifications are transparent representations of the key material
  21.  * that constitutes a key. If the key is stored on a hardware device, its
  22.  * specification may contain information that helps identify the key on the
  23.  * device.
  24.  *
  25.  * <P> A key may be specified in an algorithm-specific way, or in an
  26.  * algorithm-independent encoding format (such as ASN.1).
  27.  * For example, a DSA private key may be specified by its components
  28.  * <code>x</code>, <code>p</code>, <code>q</code>, and <code>g</code>
  29.  * (see <a href = "DSAPrivateKeySpec">DSAPrivateKeySpec</a>), or it may be
  30.  * specified using its DER encoding
  31.  * (see <a href = "PKCS8EncodedKeySpec">PKCS8EncodedKeySpec</a>).
  32.  *
  33.  * <P> This interface contains no methods or constants. Its only purpose
  34.  * is to group (and provide type safety for) all key specifications.
  35.  * All key specifications must implement this interface.
  36.  * 
  37.  * @author Jan Luehe
  38.  *
  39.  * @version 1.6, 98/03/18
  40.  *
  41.  * @see java.security.Key
  42.  * @see java.security.KeyFactory
  43.  * @see EncodedKeySpec
  44.  * @see X509EncodedKeySpec
  45.  * @see PKCS8EncodedKeySpec
  46.  * @see DSAPrivateKeySpec
  47.  * @see DSAPublicKeySpec
  48.  *
  49.  * @since JDK1.2
  50.  */
  51.  
  52. public interface KeySpec { }
  53.