This is an ECDSA key factory that transforms ECDSA key specs into PKCS#11 key objects and vice
versa. To create PKCS#11 private or public keys, the application cannot pass the actual key specs
directly to the factory. It must wrap them into a PKCS11KeySpec, which tells the factory on which
token to generate the key. For public keys, this factory can handle X.509 public key specs (
java.security.spec.X509EncodedKeySpec) For private keys, it handles PKCS#8 encoded
key specs (java.security.spec.PKCS8EncodedKeySpec). Both key specs must carry ANSI
X9.62 encoded keys internally. This standard is compatible to IEEE 1363 and Certicom Sec 1.