KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > security > spec > KeySpec


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

44
45 public interface KeySpec { }
46
Popular Tags