A KeyFactory object is a reference-count pointer that wraps a KeyFactoryImpl object
![]() | KeyFactory (KeyFactoryImpl *impl = NULL) Constructs a KeyFactory object given a KeyFactoryImpl object |
![]() | ~KeyFactory () Destroys this object |
![]() | getInstance () Returns an instance of the Provider's KeyFactory/ |
A KeyFactory object is a reference-count pointer that wraps a KeyFactoryImpl object. It provides applications, albeit indirectly, with key generation, PEM or DER encoding and decoding of the key for export or import.Usage: try { KeyFactory fac = KeyFactory::getInstance(); KeyPair pair = fac->generateRSAKeyPair(); string enc = fac->getKeyEncoded("DER", pair.getPrivateKey()); PrivateKey key = fac->initPrivateKey("DER", "RSA", enc); .... } catch(SecurityException e) { ... }
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de