Class HawkKeyFactorySpi
- java.lang.Object
-
- java.security.KeyFactorySpi
-
- org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi
-
- org.bouncycastle.pqc.jcajce.provider.hawk.HawkKeyFactorySpi
-
- All Implemented Interfaces:
AsymmetricKeyInfoConverter
- Direct Known Subclasses:
HawkKeyFactorySpi.HAWK_1024,HawkKeyFactorySpi.HAWK_256,HawkKeyFactorySpi.HAWK_512
public class HawkKeyFactorySpi extends BaseKeyFactorySpi
KeyFactorySpifor Hawk. The unparameterised form accepts encoded keys for any Hawk parameter set; the nestedHawkKeyFactorySpi.HAWK_256/HawkKeyFactorySpi.HAWK_512/HawkKeyFactorySpi.HAWK_1024subclasses restrict decoding to a single OID for use as the per-parameter-setKeyFactory.<spec.getName()>registrations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHawkKeyFactorySpi.HAWK_1024static classHawkKeyFactorySpi.HAWK_256static classHawkKeyFactorySpi.HAWK_512
-
Constructor Summary
Constructors Constructor Description HawkKeyFactorySpi()HawkKeyFactorySpi(ASN1ObjectIdentifier keyOid)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.spec.KeySpecengineGetKeySpec(java.security.Key key, java.lang.Class keySpec)java.security.KeyengineTranslateKey(java.security.Key key)java.security.PrivateKeygeneratePrivate(PrivateKeyInfo keyInfo)java.security.PublicKeygeneratePublic(SubjectPublicKeyInfo keyInfo)-
Methods inherited from class org.bouncycastle.pqc.jcajce.provider.util.BaseKeyFactorySpi
engineGeneratePrivate, engineGeneratePublic
-
-
-
-
Constructor Detail
-
HawkKeyFactorySpi
public HawkKeyFactorySpi()
-
HawkKeyFactorySpi
public HawkKeyFactorySpi(ASN1ObjectIdentifier keyOid)
-
-
Method Detail
-
engineGetKeySpec
public final java.security.spec.KeySpec engineGetKeySpec(java.security.Key key, java.lang.Class keySpec) throws java.security.spec.InvalidKeySpecException- Specified by:
engineGetKeySpecin classjava.security.KeyFactorySpi- Throws:
java.security.spec.InvalidKeySpecException
-
engineTranslateKey
public final java.security.Key engineTranslateKey(java.security.Key key) throws java.security.InvalidKeyException- Specified by:
engineTranslateKeyin classjava.security.KeyFactorySpi- Throws:
java.security.InvalidKeyException
-
generatePrivate
public java.security.PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
generatePublic
public java.security.PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws java.io.IOException
- Throws:
java.io.IOException
-
-