public class HawkKeyFactorySpi extends BaseKeyFactorySpi
KeyFactorySpi for Hawk. The unparameterised form
accepts encoded keys for any Hawk parameter set; the nested HawkKeyFactorySpi.HAWK_256
/ HawkKeyFactorySpi.HAWK_512 / HawkKeyFactorySpi.HAWK_1024 subclasses restrict decoding to a
single OID for use as the per-parameter-set KeyFactory.<spec.getName()>
registrations.| Modifier and Type | Class and Description |
|---|---|
static class |
HawkKeyFactorySpi.HAWK_1024 |
static class |
HawkKeyFactorySpi.HAWK_256 |
static class |
HawkKeyFactorySpi.HAWK_512 |
| Constructor and Description |
|---|
HawkKeyFactorySpi() |
HawkKeyFactorySpi(ASN1ObjectIdentifier keyOid) |
| Modifier and Type | Method and Description |
|---|---|
java.security.spec.KeySpec |
engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec) |
java.security.Key |
engineTranslateKey(java.security.Key key) |
java.security.PrivateKey |
generatePrivate(PrivateKeyInfo keyInfo) |
java.security.PublicKey |
generatePublic(SubjectPublicKeyInfo keyInfo) |
engineGeneratePrivate, engineGeneratePublicpublic HawkKeyFactorySpi()
public HawkKeyFactorySpi(ASN1ObjectIdentifier keyOid)
public final java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpijava.security.spec.InvalidKeySpecExceptionpublic final java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpijava.security.InvalidKeyExceptionpublic java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
java.io.IOExceptionpublic java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
java.io.IOException