Help Java TM 2 Platform Std.
Key factories are bi-directional.
Multiple compatible key specifications may exist for the same key. For example, a DSA public key may be specified using DSAPublicKeySpec or X509EncodedKeySpec . A key factory can be used to translate between compatible key specifications. The following is an example of how to use a key factory in order to instantiate a DSA public key from its encoding. Assume Alice has received a digital signature from Bob.