public class KeyFactorySpi extends BaseKeyFactorySpi implements AsymmetricKeyInfoConverter
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyFactorySpi.ED25519 |
static class |
KeyFactorySpi.ED448 |
static class |
KeyFactorySpi.EDDSA |
static class |
KeyFactorySpi.X25519 |
static class |
KeyFactorySpi.X448 |
static class |
KeyFactorySpi.XDH |
| Constructor and Description |
|---|
KeyFactorySpi(String algorithm,
boolean isXdh,
int specificBase) |
| Modifier and Type | Method and Description |
|---|---|
protected PrivateKey |
engineGeneratePrivate(KeySpec keySpec) |
protected PublicKey |
engineGeneratePublic(KeySpec keySpec) |
protected KeySpec |
engineGetKeySpec(Key key,
Class spec) |
protected Key |
engineTranslateKey(Key key) |
PrivateKey |
generatePrivate(PrivateKeyInfo keyInfo) |
PublicKey |
generatePublic(SubjectPublicKeyInfo keyInfo) |
public KeyFactorySpi(String algorithm, boolean isXdh, int specificBase)
protected Key engineTranslateKey(Key key) throws InvalidKeyException
engineTranslateKey in class KeyFactorySpiInvalidKeyExceptionprotected KeySpec engineGetKeySpec(Key key, Class spec) throws InvalidKeySpecException
engineGetKeySpec in class BaseKeyFactorySpiInvalidKeySpecExceptionprotected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePrivate in class BaseKeyFactorySpiInvalidKeySpecExceptionprotected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException
engineGeneratePublic in class BaseKeyFactorySpiInvalidKeySpecExceptionpublic PrivateKey generatePrivate(PrivateKeyInfo keyInfo) throws IOException
generatePrivate in interface AsymmetricKeyInfoConverterIOExceptionpublic PublicKey generatePublic(SubjectPublicKeyInfo keyInfo) throws IOException
generatePublic in interface AsymmetricKeyInfoConverterIOExceptionCopyright © 2015–2019 The veraPDF Consortium. All rights reserved.