< prev index next >

src/java.base/share/classes/java/security/Key.java

Print this page




  80  * factory (see {@link KeyFactory}).
  81  *
  82  * <p> A Key should use KeyRep as its serialized representation.
  83  * Note that a serialized Key may contain sensitive information
  84  * which should not be exposed in untrusted environments.  See the
  85  * <a href="{@docRoot}/../specs/serialization/security.html">
  86  * Security Appendix</a>
  87  * of the Serialization Specification for more information.
  88  *
  89  * @see PublicKey
  90  * @see PrivateKey
  91  * @see KeyPair
  92  * @see KeyPairGenerator
  93  * @see KeyFactory
  94  * @see KeyRep
  95  * @see java.security.spec.KeySpec
  96  * @see Identity
  97  * @see Signer
  98  *
  99  * @author Benjamin Renaud

 100  */
 101 
 102 public interface Key extends java.io.Serializable {
 103 
 104     // Declare serialVersionUID to be compatible with JDK1.1
 105 
 106    /**
 107     * The class fingerprint that is set to indicate
 108     * serialization compatibility with a previous
 109     * version of the class.
 110     */
 111     static final long serialVersionUID = 6603384152749567654L;
 112 
 113     /**
 114      * Returns the standard algorithm name for this key. For
 115      * example, "DSA" would indicate that this key is a DSA key.
 116      * See Appendix A in the <a href=
 117      * "../../../technotes/guides/security/crypto/CryptoSpec.html#AppA">
 118      * Java Cryptography Architecture API Specification &amp; Reference </a>
 119      * for information about standard algorithm names.




  80  * factory (see {@link KeyFactory}).
  81  *
  82  * <p> A Key should use KeyRep as its serialized representation.
  83  * Note that a serialized Key may contain sensitive information
  84  * which should not be exposed in untrusted environments.  See the
  85  * <a href="{@docRoot}/../specs/serialization/security.html">
  86  * Security Appendix</a>
  87  * of the Serialization Specification for more information.
  88  *
  89  * @see PublicKey
  90  * @see PrivateKey
  91  * @see KeyPair
  92  * @see KeyPairGenerator
  93  * @see KeyFactory
  94  * @see KeyRep
  95  * @see java.security.spec.KeySpec
  96  * @see Identity
  97  * @see Signer
  98  *
  99  * @author Benjamin Renaud
 100  * @since 1.1
 101  */
 102 
 103 public interface Key extends java.io.Serializable {
 104 
 105     // Declare serialVersionUID to be compatible with JDK1.1
 106 
 107    /**
 108     * The class fingerprint that is set to indicate
 109     * serialization compatibility with a previous
 110     * version of the class.
 111     */
 112     static final long serialVersionUID = 6603384152749567654L;
 113 
 114     /**
 115      * Returns the standard algorithm name for this key. For
 116      * example, "DSA" would indicate that this key is a DSA key.
 117      * See Appendix A in the <a href=
 118      * "../../../technotes/guides/security/crypto/CryptoSpec.html#AppA">
 119      * Java Cryptography Architecture API Specification &amp; Reference </a>
 120      * for information about standard algorithm names.


< prev index next >