public abstract interface Key
  Comment     Returned-by     Constructor-argument     Method-argument     Field-type     Type-bound     Links  

The Key interface is the top-level interface for all keys. It defines the functionality shared by all key objects. All keys have three characteristics:

Keys are generally obtained through key generators, certificates, or various Identity classes used to manage keys. Keys may also be obtained from key specifications (transparent representations of the underlying key material) through the use of a key factory (see KeyFactory).

A Key should use KeyRep as its serialized representation. Note that a serialized Key may contain sensitive information which should not be exposed in untrusted environments. See the Security Appendix of the Serialization Specification for more information.

extends Serializable

See also:
PublicKey, PrivateKey, KeyPair, KeyPairGenerator, KeyFactory, KeyRep,, Identity, Signer

Since:  1.1